Battle for Dream Island Wiki battlefordreamislandwikiwiki https://battlefordreamislandwiki.miraheze.org/wiki/Main_Page MediaWiki 1.40.1 first-letter Media Special Talk User User talk Battle for Dream Island Wiki Battle for Dream Island Wiki talk File File talk MediaWiki MediaWiki talk Template Template talk Help Help talk Category Category talk UserWiki UserWiki talk User profile User profile talk Poll Poll talk Module Module talk Template:Main other 10 21 44 2010-10-04T14:46:48Z Infobox character>WOSlinker 0 remove {{pp-template}} wikitext text/x-wiki {{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:0}} | main | other }} }} | main = {{{1|}}} | other | #default = {{{2|}}} }}<noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude> c8e5526da7586aff37928206e183ceef44ed7829 Template:Nowrap 10 23 48 2015-11-28T10:13:53Z Infobox character>Edokter 0 Adapt comment; edits inside noinclude blocks should not affect job queue, but won't kill parser either way. wikitext text/x-wiki <span class="nowrap">{{{1}}}</span><noinclude> {{documentation}} <!-- Categories go on the /doc page; interwikis go to Wikidata. --> </noinclude> 5d0dc6b6d89b37f4356242404f46138a4017f015 Template:PAGENAMEBASE 10 24 50 2016-03-06T09:37:56Z Infobox character>Cabayi 0 per edit request & discussion wikitext text/x-wiki {{{{{|safesubst:}}}#Invoke:String|replace|{{{1|{{{{{|safesubst:}}}PAGENAME}}}}}|%s+%b()$||1|false}}<noinclude> {{documentation}} </noinclude> f23a5d434cb5b0baac5e1f58e9ceef9118e6873f Template:Str left 10 30 62 2016-09-30T07:01:19Z Infobox character>Ymblanter 0 Changed protection level of Template:Str left: [[WP:High-risk templates|Highly visible template]]: RFPP request ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) wikitext text/x-wiki <includeonly>{{safesubst:padleft:|{{{2|1}}}|{{{1}}}}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> 2048b0d7b35e156528655b1d090e8b5ffab3f400 Template:Based on 10 7 16 2016-11-03T08:48:48Z Infobox character>RMCD bot 0 Removing notice of move discussion wikitext text/x-wiki <includeonly>{{#invoke:Based on|main}}</includeonly><noinclude>{{Documentation}}</noinclude> 46792656a06b09c2ef31b84b58d60e444c54fbbd Template:Parameter names example 10 26 54 2017-10-09T17:20:51Z Infobox character>MusikAnimal 0 Protected "[[Template:Parameter names example]]": [[WP:High-risk templates|Highly visible template]]; 1,000+ transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite)) wikitext text/x-wiki <includeonly>{{#invoke:Parameter names example|main}}</includeonly><noinclude> {{hatnote|[[Template:Generic template demo]] and [[Template:Pnex]] redirect here.}}<!--(hatnote more noticeable here than within Documentation)--> {{Documentation}} </noinclude> 6b63b13c0cf74f1f8d250aa644a6bd27e19052f6 Template:Plainlist 10 27 56 2018-01-01T22:56:03Z Infobox character>JJMC89 0 actually correct, needed when |1= not present ({{Endplainlist}}) wikitext text/x-wiki <div class="plainlist {{{class|}}}" {{#if:{{{style|}}}{{{indent|}}}|style="{{#if:{{{indent|}}}|margin-left: {{#expr:{{{indent}}}*1.6}}em;}} {{{style|}}}"}}>{{#if:{{{1|}}}| {{{1}}} </div>}}<noinclude></div> {{documentation}} </noinclude> cd6b6a5ffb75fb4f0a5b0f4e3a9aabbbf2213353 Template:Remove first word 10 28 58 2018-02-13T20:10:27Z Infobox character>WOSlinker 0 separate pp-template not needed wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:String|replace|source={{{1}}}|pattern=^[^{{{sep|%s}}}]*{{{sep|%s}}}*|replace=|plain=false}}<noinclude>{{Documentation}}</noinclude> df7a9e692f68be1581be06af5f51eaed5483b4c8 Template:Yesno-no 10 38 78 2018-02-13T20:27:17Z Infobox character>WOSlinker 0 separate pp-template not needed wikitext text/x-wiki {{safesubst:<noinclude />yesno|{{{1}}}|yes={{{yes|yes}}}|no={{{no|no}}}|blank={{{blank|no}}}|¬={{{¬|no}}}|def={{{def|no}}}}}<noinclude> {{Documentation|Template:Yesno/doc}} <!--Categories go in the doc page referenced above; interwikis go in Wikidata.--> </noinclude> 1ad7b7800da1b867ead8f6ff8cef76e6201b3b56 Template:Greater color contrast ratio 10 15 32 2018-02-23T16:29:56Z Infobox character>Primefac 0 Changed protection level for "[[Template:Greater color contrast ratio]]": [[WP:HIGHRISK|high-risk]] template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) wikitext text/x-wiki <includeonly>{{safesubst:#invoke:Color contrast|greatercontrast}}</includeonly><noinclude> {{documentation}} </noinclude> eaba2f8ea92d1caa3afd9d70142b65215c23038d Template:Infobox 10 18 38 2018-08-15T18:33:36Z Infobox character>Primefac 0 Undid revision 855063393 by [[Special:Contributions/Jdlrobson|Jdlrobson]] ([[User talk:Jdlrobson|talk]]) rather problematic change mentioned [[Template_talk:Infobox#Using_template_styles_to_reduce_technical_debt_inside_mobile_skin|on talk page]], reverting until it can be sorted wikitext text/x-wiki {{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude> {{documentation}} <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> </noinclude> 817a9f5b6524eced06a57bd1d5fd7179f9369bf2 Template:Template other 10 33 68 2018-12-16T22:06:25Z Infobox character>Amorymeltzer 0 Changed protection level for "[[Template:Template other]]": [[WP:High-risk templates|Highly visible template]]: Transclusion count has increased dramatically ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)) wikitext text/x-wiki {{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:Template}} | template | other }} }} | template = {{{1|}}} | other | #default = {{{2|}}} }}<!--End switch--><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude> 06fb13d264df967b5232141067eb7d2b67372d76 Template:If empty 10 17 36 2019-02-22T14:52:55Z Infobox character>Primefac 0 Changed protection level for "[[Template:If empty]]": matching module permission ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:If empty|main}}<noinclude>{{Documentation}}</noinclude> 745940b7bdde8a1585c887ee4ee5ce81d98461a4 Template:Lua 10 20 42 2019-03-20T22:04:45Z Infobox character>RMCD bot 0 Removing notice of move discussion wikitext text/x-wiki <includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude> {{Lua|Module:Lua banner}} {{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> dba3962144dacd289dbc34f50fbe0a7bf6d7f2f7 Module:Lua 828 45 93 2019-03-20T22:04:45Z Infobox>RMCD bot 0 Removing notice of move discussion wikitext text/x-wiki <includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude> {{Lua|Module:Lua banner}} {{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> dba3962144dacd289dbc34f50fbe0a7bf6d7f2f7 Template:Clc 10 9 20 2019-04-24T04:30:59Z Infobox character>JJMC89 0 actual template is in the category wikitext text/x-wiki #REDIRECT [[Template:Category link with count]] 02280e2ab57b544236e11f913e3759c5781ca9d5 Module:Clc 828 43 89 2019-04-24T04:30:59Z Infobox>JJMC89 0 actual template is in the category wikitext text/x-wiki #REDIRECT [[Template:Category link with count]] 02280e2ab57b544236e11f913e3759c5781ca9d5 Module:List 828 59 123 2019-09-11T21:05:14Z Infobox>Paine Ellsworth 0 xfer from sandbox per edit request on talk page Scribunto text/plain -- This module outputs different kinds of lists. At the moment, bulleted, -- unbulleted, horizontal, ordered, and horizontal ordered lists are supported. local libUtil = require('libraryUtil') local checkType = libUtil.checkType local mTableTools = require('Module:TableTools') local p = {} local listTypes = { ['bulleted'] = true, ['unbulleted'] = true, ['horizontal'] = true, ['ordered'] = true, ['horizontal_ordered'] = true } function p.makeListData(listType, args) -- Constructs a data table to be passed to p.renderList. local data = {} -- Classes data.classes = {} if listType == 'horizontal' or listType == 'horizontal_ordered' then table.insert(data.classes, 'hlist hlist-separated') elseif listType == 'unbulleted' then table.insert(data.classes, 'plainlist') end table.insert(data.classes, args.class) -- Main div style data.style = args.style -- Indent for horizontal lists if listType == 'horizontal' or listType == 'horizontal_ordered' then local indent = tonumber(args.indent) indent = indent and indent * 1.6 or 0 if indent > 0 then data.marginLeft = indent .. 'em' end end -- List style types for ordered lists -- This could be "1, 2, 3", "a, b, c", or a number of others. The list style -- type is either set by the "type" attribute or the "list-style-type" CSS -- property. if listType == 'ordered' or listType == 'horizontal_ordered' then data.listStyleType = args.list_style_type or args['list-style-type'] data.type = args['type'] -- Detect invalid type attributes and attempt to convert them to -- list-style-type CSS properties. if data.type and not data.listStyleType and not tostring(data.type):find('^%s*[1AaIi]%s*$') then data.listStyleType = data.type data.type = nil end end -- List tag type if listType == 'ordered' or listType == 'horizontal_ordered' then data.listTag = 'ol' else data.listTag = 'ul' end -- Start number for ordered lists data.start = args.start if listType == 'horizontal_ordered' then -- Apply fix to get start numbers working with horizontal ordered lists. local startNum = tonumber(data.start) if startNum then data.counterReset = 'listitem ' .. tostring(startNum - 1) end end -- List style -- ul_style and ol_style are included for backwards compatibility. No -- distinction is made for ordered or unordered lists. data.listStyle = args.list_style -- List items -- li_style is included for backwards compatibility. item_style was included -- to be easier to understand for non-coders. data.itemStyle = args.item_style or args.li_style data.items = {} for i, num in ipairs(mTableTools.numKeys(args)) do local item = {} item.content = args[num] item.style = args['item' .. tostring(num) .. '_style'] or args['item_style' .. tostring(num)] item.value = args['item' .. tostring(num) .. '_value'] or args['item_value' .. tostring(num)] table.insert(data.items, item) end return data end function p.renderList(data) -- Renders the list HTML. -- Return the blank string if there are no list items. if type(data.items) ~= 'table' or #data.items < 1 then return '' end -- Render the main div tag. local root = mw.html.create('div') for i, class in ipairs(data.classes or {}) do root:addClass(class) end root:css{['margin-left'] = data.marginLeft} if data.style then root:cssText(data.style) end -- Render the list tag. local list = root:tag(data.listTag or 'ul') list :attr{start = data.start, type = data.type} :css{ ['counter-reset'] = data.counterReset, ['list-style-type'] = data.listStyleType } if data.listStyle then list:cssText(data.listStyle) end -- Render the list items for i, t in ipairs(data.items or {}) do local item = list:tag('li') if data.itemStyle then item:cssText(data.itemStyle) end if t.style then item:cssText(t.style) end item :attr{value = t.value} :wikitext(t.content) end return tostring(root) end function p.renderTrackingCategories(args) local isDeprecated = false -- Tracks deprecated parameters. for k, v in pairs(args) do k = tostring(k) if k:find('^item_style%d+$') or k:find('^item_value%d+$') then isDeprecated = true break end end local ret = '' if isDeprecated then ret = ret .. '[[Category:List templates with deprecated parameters]]' end return ret end function p.makeList(listType, args) if not listType or not listTypes[listType] then error(string.format( "bad argument #1 to 'makeList' ('%s' is not a valid list type)", tostring(listType) ), 2) end checkType('makeList', 2, args, 'table') local data = p.makeListData(listType, args) local list = p.renderList(data) local trackingCategories = p.renderTrackingCategories(args) return list .. trackingCategories end for listType in pairs(listTypes) do p[listType] = function (frame) local mArguments = require('Module:Arguments') local origArgs = mArguments.getArgs(frame, { valueFunc = function (key, value) if not value or not mw.ustring.find(value, '%S') then return nil end if mw.ustring.find(value, '^%s*[%*#;:]') then return value else return value:match('^%s*(.-)%s*$') end return nil end }) -- Copy all the arguments to a new table, for faster indexing. local args = {} for k, v in pairs(origArgs) do args[k] = v end return p.makeList(listType, args) end end return p 0d6c114450d0f5b3c1d2171ebeb41ae74f203f88 Module:Module other 828 46 95 2019-12-09T01:20:22Z Infobox>RMCD bot 0 Removing notice of move discussion wikitext text/x-wiki {{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:Module}} | module | other }} }} | module = {{{1|}}} | other | #default = {{{2|}}} }}<!--End switch--><noinclude> {{documentation}} <!-- Add categories to the /doc subpage, not here! --> </noinclude> 503694836c1b07142e63fd35d8be69ec8bb9ffe7 Template:Unbulleted list 10 36 74 2019-12-09T17:31:16Z Infobox character>Jonesey95 0 Undid revision 929522913 by [[Special:Contributions/MSGJ|MSGJ]] ([[User talk:MSGJ|talk]]). Reverted, as this change has been shown to have bugs. Discussion continues on talk page. wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:list|unbulleted}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> 89815a491d3e05b20af446e34cda13f13c25fb4f Template:Documentation 10 12 26 2020-04-01T06:12:34Z Infobox character>MusikAnimal 0 1 revision imported wikitext text/x-wiki {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> ce7fd93f18c46b4fa871bf679afd05cbda72d8c4 Template:Navbox 10 22 46 2020-04-01T06:12:36Z Infobox character>MusikAnimal 0 1 revision imported wikitext text/x-wiki <includeonly>{{#invoke:Navbox|navbox}}</includeonly><noinclude> {{Documentation}} </noinclude> fe9b964401f895918ee4fe078678f1722a3c41ec Module:Ombox 828 48 99 2020-04-01T06:12:36Z Infobox>MusikAnimal 0 1 revision imported wikitext text/x-wiki {{#invoke:Message box|ombox}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> 0e54065432d540737b9e56c4e3a8e7f74d4534ea Template:Para 10 25 52 2020-04-01T06:12:37Z Infobox character>MusikAnimal 0 1 revision imported wikitext text/x-wiki <code class="nowrap" style="{{SAFESUBST:<noinclude />#if:{{{plain|}}}|border: none; background-color: inherit;}} {{SAFESUBST:<noinclude />#if:{{{plain|}}}{{{mxt|}}}{{{green|}}}{{{!mxt|}}}{{{red|}}}|color: {{SAFESUBST:<noinclude />#if:{{{mxt|}}}{{{green|}}}|#006400|{{SAFESUBST:<noinclude />#if:{{{!mxt|}}}{{{red|}}}|#8B0000|inherit}}}};}} {{SAFESUBST:<noinclude />#if:{{{style|}}}|{{{style}}}}}">&#124;{{SAFESUBST:<noinclude />#if:{{{1|}}}|{{{1}}}&#61;}}{{{2|}}}</code><noinclude> {{Documentation}} <!--Categories and interwikis go near the bottom of the /doc subpage.--> </noinclude> 96ef5dce1fb3a5c1b6648eac125a2496944a852e Module:Arguments 828 51 105 2020-04-01T06:12:40Z Infobox>MusikAnimal 0 1 revision imported Scribunto text/plain -- This module provides easy processing of arguments passed to Scribunto from -- #invoke. It is intended for use by other Lua modules, and should not be -- called from #invoke directly. local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local arguments = {} -- Generate four different tidyVal functions, so that we don't have to check the -- options every time we call it. local function tidyValDefault(key, val) if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val == '' then return nil else return val end else return val end end local function tidyValTrimOnly(key, val) if type(val) == 'string' then return val:match('^%s*(.-)%s*$') else return val end end local function tidyValRemoveBlanksOnly(key, val) if type(val) == 'string' then if val:find('%S') then return val else return nil end else return val end end local function tidyValNoChange(key, val) return val end local function matchesTitle(given, title) local tp = type( given ) return (tp == 'string' or tp == 'number') and mw.title.new( given ).prefixedText == title end local translate_mt = { __index = function(t, k) return k end } function arguments.getArgs(frame, options) checkType('getArgs', 1, frame, 'table', true) checkType('getArgs', 2, options, 'table', true) frame = frame or {} options = options or {} --[[ -- Set up argument translation. --]] options.translate = options.translate or {} if getmetatable(options.translate) == nil then setmetatable(options.translate, translate_mt) end if options.backtranslate == nil then options.backtranslate = {} for k,v in pairs(options.translate) do options.backtranslate[v] = k end end if options.backtranslate and getmetatable(options.backtranslate) == nil then setmetatable(options.backtranslate, { __index = function(t, k) if options.translate[k] ~= k then return nil else return k end end }) end --[[ -- Get the argument tables. If we were passed a valid frame object, get the -- frame arguments (fargs) and the parent frame arguments (pargs), depending -- on the options set and on the parent frame's availability. If we weren't -- passed a valid frame object, we are being called from another Lua module -- or from the debug console, so assume that we were passed a table of args -- directly, and assign it to a new variable (luaArgs). --]] local fargs, pargs, luaArgs if type(frame.args) == 'table' and type(frame.getParent) == 'function' then if options.wrappers then --[[ -- The wrappers option makes Module:Arguments look up arguments in -- either the frame argument table or the parent argument table, but -- not both. This means that users can use either the #invoke syntax -- or a wrapper template without the loss of performance associated -- with looking arguments up in both the frame and the parent frame. -- Module:Arguments will look up arguments in the parent frame -- if it finds the parent frame's title in options.wrapper; -- otherwise it will look up arguments in the frame object passed -- to getArgs. --]] local parent = frame:getParent() if not parent then fargs = frame.args else local title = parent:getTitle():gsub('/sandbox$', '') local found = false if matchesTitle(options.wrappers, title) then found = true elseif type(options.wrappers) == 'table' then for _,v in pairs(options.wrappers) do if matchesTitle(v, title) then found = true break end end end -- We test for false specifically here so that nil (the default) acts like true. if found or options.frameOnly == false then pargs = parent.args end if not found or options.parentOnly == false then fargs = frame.args end end else -- options.wrapper isn't set, so check the other options. if not options.parentOnly then fargs = frame.args end if not options.frameOnly then local parent = frame:getParent() pargs = parent and parent.args or nil end end if options.parentFirst then fargs, pargs = pargs, fargs end else luaArgs = frame end -- Set the order of precedence of the argument tables. If the variables are -- nil, nothing will be added to the table, which is how we avoid clashes -- between the frame/parent args and the Lua args. local argTables = {fargs} argTables[#argTables + 1] = pargs argTables[#argTables + 1] = luaArgs --[[ -- Generate the tidyVal function. If it has been specified by the user, we -- use that; if not, we choose one of four functions depending on the -- options chosen. This is so that we don't have to call the options table -- every time the function is called. --]] local tidyVal = options.valueFunc if tidyVal then if type(tidyVal) ~= 'function' then error( "bad value assigned to option 'valueFunc'" .. '(function expected, got ' .. type(tidyVal) .. ')', 2 ) end elseif options.trim ~= false then if options.removeBlanks ~= false then tidyVal = tidyValDefault else tidyVal = tidyValTrimOnly end else if options.removeBlanks ~= false then tidyVal = tidyValRemoveBlanksOnly else tidyVal = tidyValNoChange end end --[[ -- Set up the args, metaArgs and nilArgs tables. args will be the one -- accessed from functions, and metaArgs will hold the actual arguments. Nil -- arguments are memoized in nilArgs, and the metatable connects all of them -- together. --]] local args, metaArgs, nilArgs, metatable = {}, {}, {}, {} setmetatable(args, metatable) local function mergeArgs(tables) --[[ -- Accepts multiple tables as input and merges their keys and values -- into one table. If a value is already present it is not overwritten; -- tables listed earlier have precedence. We are also memoizing nil -- values, which can be overwritten if they are 's' (soft). --]] for _, t in ipairs(tables) do for key, val in pairs(t) do if metaArgs[key] == nil and nilArgs[key] ~= 'h' then local tidiedVal = tidyVal(key, val) if tidiedVal == nil then nilArgs[key] = 's' else metaArgs[key] = tidiedVal end end end end end --[[ -- Define metatable behaviour. Arguments are memoized in the metaArgs table, -- and are only fetched from the argument tables once. Fetching arguments -- from the argument tables is the most resource-intensive step in this -- module, so we try and avoid it where possible. For this reason, nil -- arguments are also memoized, in the nilArgs table. Also, we keep a record -- in the metatable of when pairs and ipairs have been called, so we do not -- run pairs and ipairs on the argument tables more than once. We also do -- not run ipairs on fargs and pargs if pairs has already been run, as all -- the arguments will already have been copied over. --]] metatable.__index = function (t, key) --[[ -- Fetches an argument when the args table is indexed. First we check -- to see if the value is memoized, and if not we try and fetch it from -- the argument tables. When we check memoization, we need to check -- metaArgs before nilArgs, as both can be non-nil at the same time. -- If the argument is not present in metaArgs, we also check whether -- pairs has been run yet. If pairs has already been run, we return nil. -- This is because all the arguments will have already been copied into -- metaArgs by the mergeArgs function, meaning that any other arguments -- must be nil. --]] if type(key) == 'string' then key = options.translate[key] end local val = metaArgs[key] if val ~= nil then return val elseif metatable.donePairs or nilArgs[key] then return nil end for _, argTable in ipairs(argTables) do local argTableVal = tidyVal(key, argTable[key]) if argTableVal ~= nil then metaArgs[key] = argTableVal return argTableVal end end nilArgs[key] = 'h' return nil end metatable.__newindex = function (t, key, val) -- This function is called when a module tries to add a new value to the -- args table, or tries to change an existing value. if type(key) == 'string' then key = options.translate[key] end if options.readOnly then error( 'could not write to argument table key "' .. tostring(key) .. '"; the table is read-only', 2 ) elseif options.noOverwrite and args[key] ~= nil then error( 'could not write to argument table key "' .. tostring(key) .. '"; overwriting existing arguments is not permitted', 2 ) elseif val == nil then --[[ -- If the argument is to be overwritten with nil, we need to erase -- the value in metaArgs, so that __index, __pairs and __ipairs do -- not use a previous existing value, if present; and we also need -- to memoize the nil in nilArgs, so that the value isn't looked -- up in the argument tables if it is accessed again. --]] metaArgs[key] = nil nilArgs[key] = 'h' else metaArgs[key] = val end end local function translatenext(invariant) local k, v = next(invariant.t, invariant.k) invariant.k = k if k == nil then return nil elseif type(k) ~= 'string' or not options.backtranslate then return k, v else local backtranslate = options.backtranslate[k] if backtranslate == nil then -- Skip this one. This is a tail call, so this won't cause stack overflow return translatenext(invariant) else return backtranslate, v end end end metatable.__pairs = function () -- Called when pairs is run on the args table. if not metatable.donePairs then mergeArgs(argTables) metatable.donePairs = true end return translatenext, { t = metaArgs } end local function inext(t, i) -- This uses our __index metamethod local v = t[i + 1] if v ~= nil then return i + 1, v end end metatable.__ipairs = function (t) -- Called when ipairs is run on the args table. return inext, t, 0 end return args end return arguments 3134ecce8429b810d445e29eae115e2ae4c36c53 Module:Effective protection expiry 828 55 113 2020-04-01T06:12:42Z Infobox>MusikAnimal 0 1 revision imported Scribunto text/plain local p = {} -- Returns the expiry of a restriction of an action on a given title, or unknown if it cannot be known. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then local stabilitySettings = mw.ext.FlaggedRevs.getStabilitySettings(title) return stabilitySettings and stabilitySettings.expiry or 'unknown' elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 ) end local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) if rawExpiry == 'infinity' then return 'infinity' elseif rawExpiry == '' then return 'unknown' else local year, month, day, hour, minute, second = rawExpiry:match( '^(%d%d%d%d)(%d%d)(%d%d)(%d%d)(%d%d)(%d%d)$' ) if year then return string.format( '%s-%s-%sT%s:%s:%s', year, month, day, hour, minute, second ) else error('internal error in Module:Effective protection expiry; malformed expiry timestamp') end end end setmetatable(p, { __index = function(t, k) return function(frame) return t._main(k, frame.args[1]) end end }) return p 9a8c58dc2667232ed08a9b206a5d89ca8150312b Module:Message box/configuration 828 62 129 2020-04-01T06:12:44Z Infobox>MusikAnimal 0 1 revision imported Scribunto text/plain -------------------------------------------------------------------------------- -- Message box configuration -- -- -- -- This module contains configuration data for [[Module:Message box]]. -- -------------------------------------------------------------------------------- return { ambox = { types = { speedy = { class = 'ambox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'ambox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'ambox-content', image = 'Ambox important.svg' }, style = { class = 'ambox-style', image = 'Edit-clear.svg' }, move = { class = 'ambox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ambox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ambox-notice', image = 'Information icon4.svg' } }, default = 'notice', allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'}, allowSmall = true, smallParam = 'left', smallClass = 'mbox-small-left', substCheck = true, classes = {'metadata', 'ambox'}, imageEmptyCell = true, imageCheckBlank = true, imageSmallSize = '20x20px', imageCellDiv = true, useCollapsibleTextFields = true, imageRightNone = true, sectionDefault = 'article', allowMainspaceCategories = true, templateCategory = 'Article message templates', templateCategoryRequireName = true, templateErrorCategory = 'Article message templates with missing parameters', templateErrorParamsToCheck = {'issue', 'fix', 'subst'}, removalNotice = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]' }, cmbox = { types = { speedy = { class = 'cmbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'cmbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'cmbox-content', image = 'Ambox important.svg' }, style = { class = 'cmbox-style', image = 'Edit-clear.svg' }, move = { class = 'cmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'cmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'cmbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'cmbox'}, imageEmptyCell = true }, fmbox = { types = { warning = { class = 'fmbox-warning', image = 'Ambox warning pn.svg' }, editnotice = { class = 'fmbox-editnotice', image = 'Information icon4.svg' }, system = { class = 'fmbox-system', image = 'Information icon4.svg' } }, default = 'system', showInvalidTypeError = true, classes = {'fmbox'}, imageEmptyCell = false, imageRightNone = false }, imbox = { types = { speedy = { class = 'imbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'imbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'imbox-content', image = 'Ambox important.svg' }, style = { class = 'imbox-style', image = 'Edit-clear.svg' }, move = { class = 'imbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'imbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, license = { class = 'imbox-license licensetpl', image = 'Imbox license.png' -- @todo We need an SVG version of this }, featured = { class = 'imbox-featured', image = 'Cscr-featured.svg' }, notice = { class = 'imbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'imbox'}, imageEmptyCell = true, below = true, templateCategory = 'File message boxes' }, ombox = { types = { speedy = { class = 'ombox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'ombox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'ombox-content', image = 'Ambox important.svg' }, style = { class = 'ombox-style', image = 'Edit-clear.svg' }, move = { class = 'ombox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ombox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ombox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'ombox'}, allowSmall = true, imageEmptyCell = true, imageRightNone = true }, tmbox = { types = { speedy = { class = 'tmbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'tmbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'tmbox-content', image = 'Ambox important.svg' }, style = { class = 'tmbox-style', image = 'Edit-clear.svg' }, move = { class = 'tmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'tmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'tmbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'tmbox'}, allowSmall = true, imageRightNone = true, imageEmptyCell = true, imageEmptyCellStyle = true, templateCategory = 'Talk message boxes' } } ef8171b8278c52d9c20a4149614d97cd948670c2 Module:Yesno 828 70 145 2020-04-01T06:27:55Z Infobox>MusikAnimal 0 Undid revision 948472533 by [[Special:Contributions/w>Vogone|w>Vogone]] ([[User talk:w>Vogone|talk]]) Scribunto text/plain -- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default) -- If your wiki uses non-ascii characters for any of "yes", "no", etc., you -- should replace "val:lower()" with "mw.ustring.lower(val)" in the -- following line. val = type(val) == 'string' and val:lower() or val if val == nil then return nil elseif val == true or val == 'yes' or val == 'y' or val == 'true' or val == 't' or val == 'on' or tonumber(val) == 1 then return true elseif val == false or val == 'no' or val == 'n' or val == 'false' or val == 'f' or val == 'off' or tonumber(val) == 0 then return false else return default end end f767643e7d12126d020d88d662a3dd057817b9dc Module:No globals 828 63 131 2020-04-01T06:28:55Z Infobox>MusikAnimal 0 Undid revision 948472525 by [[Special:Contributions/w>DiBabelYurikBot|w>DiBabelYurikBot]] ([[User talk:w>DiBabelYurikBot|talk]]) Scribunto text/plain local mt = getmetatable(_G) or {} function mt.__index (t, k) if k ~= 'arg' then error('Tried to read nil global ' .. tostring(k), 2) end return nil end function mt.__newindex(t, k, v) if k ~= 'arg' then error('Tried to write global ' .. tostring(k), 2) end rawset(t, k, v) end setmetatable(_G, mt) 8ce3969f7d53b08bd00dabe4cc9780bc6afd412a Module:File link 828 57 117 2020-04-01T06:31:54Z Infobox>MusikAnimal 0 Undid revision 948472508 by [[Special:Contributions/w>IPad365|w>IPad365]] ([[User talk:w>IPad365|talk]]) Scribunto text/plain -- This module provides a library for formatting file wikilinks. local yesno = require('Module:Yesno') local checkType = require('libraryUtil').checkType local p = {} function p._main(args) checkType('_main', 1, args, 'table') -- This is basically libraryUtil.checkTypeForNamedArg, but we are rolling our -- own function to get the right error level. local function checkArg(key, val, level) if type(val) ~= 'string' then error(string.format( "type error in '%s' parameter of '_main' (expected string, got %s)", key, type(val) ), level) end end local ret = {} -- Adds a positional parameter to the buffer. local function addPositional(key) local val = args[key] if not val then return nil end checkArg(key, val, 4) ret[#ret + 1] = val end -- Adds a named parameter to the buffer. We assume that the parameter name -- is the same as the argument key. local function addNamed(key) local val = args[key] if not val then return nil end checkArg(key, val, 4) ret[#ret + 1] = key .. '=' .. val end -- Filename checkArg('file', args.file, 3) ret[#ret + 1] = 'File:' .. args.file -- Format if args.format then checkArg('format', args.format) if args.formatfile then checkArg('formatfile', args.formatfile) ret[#ret + 1] = args.format .. '=' .. args.formatfile else ret[#ret + 1] = args.format end end -- Border if yesno(args.border) then ret[#ret + 1] = 'border' end addPositional('location') addPositional('alignment') addPositional('size') addNamed('upright') addNamed('link') addNamed('alt') addNamed('page') addNamed('class') addNamed('lang') addNamed('start') addNamed('end') addNamed('thumbtime') addPositional('caption') return string.format('[[%s]]', table.concat(ret, '|')) end function p.main(frame) local origArgs = require('Module:Arguments').getArgs(frame, { wrappers = 'Template:File link' }) if not origArgs.file then error("'file' parameter missing from [[Template:File link]]", 0) end -- Copy the arguments that were passed to a new table to avoid looking up -- every possible parameter in the frame object. local args = {} for k, v in pairs(origArgs) do -- Make _BLANK a special argument to add a blank parameter. For use in -- conditional templates etc. it is useful for blank arguments to be -- ignored, but we still need a way to specify them so that we can do -- things like [[File:Example.png|link=]]. if v == '_BLANK' then v = '' end args[k] = v end return p._main(args) end return p 66925f088d11530f2482f04181a3baaaa0ad3d0c Template:Documentation subpage 10 13 28 2020-04-01T06:32:45Z Infobox character>DannyS712 0 Reverted to revision 617432645 by [[Special:Contributions/Sardanaphalus|Sardanaphalus]] ([[User talk:Sardanaphalus|talk]]): Restoring ([[WP:TW|TW]]) wikitext text/x-wiki <includeonly><!-- -->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}} | <!--(this template has been transcluded on a /doc or /{{{override}}} page)--> </includeonly><!-- -->{{#ifeq:{{{doc-notice|show}}} |show | {{Mbox | type = notice | style = margin-bottom:1.0em; | image = [[File:Edit-copy green.svg|40px|alt=|link=]] | text = '''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[Wikipedia:Categorization|categories]] and other content that is not part of the original {{#if:{{{text2|}}} |{{{text2}}} |{{#if:{{{text1|}}} |{{{text1}}} |{{#ifeq:{{SUBJECTSPACE}} |{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} template page |{{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}. }} }}<!-- -->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!-- -->{{#if:{{{inhibit|}}} |<!--(don't categorize)--> | <includeonly><!-- -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}} | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | [[Category:Documentation subpages without corresponding pages]] }}<!-- --></includeonly> }}<!-- (completing initial #ifeq: at start of template:) --><includeonly> | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)--> }}<!-- --></includeonly><noinclude>{{Documentation}}</noinclude> a1dda2f5e5ddf9097546af5acd7a7bad14fdac9d Template:Template parameter usage 10 34 70 2020-04-02T17:20:07Z Infobox character>Jonesey95 0 no need for upper case; "monthly" should not have been removed, since the reports are generated monthly. wikitext text/x-wiki {{#switch:{{{label|}}} |={{#ifeq:{{yesno-no|{{{lc}}}}}|no|S|s}}ee the monthly [https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template={{Urlencode:{{#if:{{{1|}}}|{{ROOTPAGENAME:{{{1|}}}}}|{{ROOTPAGENAME}}}}}} parameter usage report] for {{#if:{{{1|}}}|[[Template:{{ROOTPAGENAME:{{{1|}}}}}]]|this template}}. |None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template={{Urlencode:{{#if:{{{1|}}}|{{ROOTPAGENAME:{{{1|}}}}}|{{ROOTPAGENAME}}}}}} Parameter usage report] |for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template={{Urlencode:{{#if:{{{1|}}}|{{ROOTPAGENAME:{{{1|}}}}}|{{ROOTPAGENAME}}}}}} Parameter usage report] for {{#if:{{{1|}}}|[[Template:{{ROOTPAGENAME:{{{1|}}}}}]]|[[Template:{{ROOTPAGENAME}}]]}}. |#default=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template={{Urlencode:{{#if:{{{1|}}}|{{ROOTPAGENAME:{{{1|}}}}}|{{ROOTPAGENAME}}}}}} {{{label|}}}] }}<noinclude> {{documentation}} </noinclude> cd2bad1a64fd267a566325fc8a83bce563ecaded Template:Sandbox other 10 29 60 2020-04-03T00:08:09Z Infobox character>Evad37 0 Also match subpage names beginning with "sandbox", per [[Template_talk:Sandbox_other#Template-protected_edit_request_on_28_March_2020|edit request]] wikitext text/x-wiki {{#if:{{#ifeq:{{#invoke:String|sublength|s={{SUBPAGENAME}}|i=0|len=7}}|sandbox|1}}{{#ifeq:{{SUBPAGENAME}}|doc|1}}{{#invoke:String|match|{{PAGENAME}}|/sandbox/styles.css$|plain=false|nomatch=}}|{{{1|}}}|{{{2|}}}}}<!-- --><noinclude>{{documentation}}</noinclude> 91e4ae891d6b791615152c1fbc971414961ba872 Template:TemplateData header 10 31 64 2020-04-04T01:28:43Z Infobox character>Evad37 0 Replace {{Template error report}} with {{Template parameter usage}} – per [[Template_talk:TemplateData_header#Template-protected_edit_request_on_2_April_2020|edit request]] wikitext text/x-wiki <div class="templatedata-header">{{#if:{{{noheader|}}}|<!-- noheader: -->{{Template parameter usage}}|<!-- +header: -->This is the {{#if:{{{nolink|}}}|<!-- +header, nolink TD -->TemplateData|<!-- +header, +link [[TD]]; DEFAULT: -->[[Wikipedia:TemplateData|TemplateData]]}}<!-- e.o. #if:nolink; DEFAULT: --> documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools; {{Template parameter usage|lc=yes}}<!-- e.o. #if:noheader -->}} '''TemplateData for {{{1|{{BASEPAGENAME}}}}}''' </div><includeonly><!-- check parameters -->{{#invoke:Check for unknown parameters|check |unknown={{template other|1=[[Category:Pages using TemplateData header with unknown parameters|_VALUE_]]}} |template=Template:TemplateData header |1 |nolink |noheader |preview=<div class="error" style="font-weight:normal">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div> }}<!-- -->{{template other|{{sandbox other|| [[Category:Templates using TemplateData]] }}}}</includeonly><!-- --><noinclude>{{Documentation}}</noinclude> 0e222b20800ec55b4bd931b36643b84b5846157b Template:Infobox character 10 6 14 2020-05-03T02:40:06Z Infobox character>Nardog 0 replace useless "Information" wikitext text/x-wiki {{Infobox | bodystyle = border-spacing: 2px 5px; | above = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }} | abovestyle = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} | color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }} | subheader = {{#if: {{{series|}}}{{{franchise|}}} | {{#if: {{{series|}}} | ''{{{series|}}}'' | {{{franchise|}}} }} character{{#if: {{{multiple|}}} | s }} }} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}}} | caption = {{{caption|}}} | headerstyle = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} |color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }} | label1 = First appearance | data1 = {{#if: {{{first|}}} | {{{first|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{first_major|}}} |minor_work={{{first_minor|}}} |issue={{{first_issue|}}} |date={{{first_date|}}} }} }} | label2 = First game | data2 = {{{firstgame|}}} | label3 = Last appearance | data3 = {{#if: {{{last|}}} | {{{last|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{last_major|}}} |minor_work={{{last_minor|}}} |issue={{{last_issue|}}} |date={{{last_date|}}} }} }} | label4 = Created by | data4 = {{{creator|}}} | label5 = Based on | data5 = {{{based_on|}}} | label6 = Adapted by | data6 = {{{adapted_by|}}} | label7 = Designed by | data7 = {{{designer|}}} | label8 = Portrayed by | data8 = {{{portrayer|}}} | label9 = Voiced by | data9 = {{{voice|}}} | label10 = Motion capture | data10 = {{{motion_actor|}}} | label11 = {{{lbl1|}}} | data11 = {{{data1|}}} | label12 = {{{lbl2|}}} | data12 = {{{data2|}}} | label13 = {{{lbl3|}}} | data13 = {{{data3|}}} | label14 = {{{lbl4|}}} | data14 = {{{data4|}}} | label15 = {{{lbl5|}}} | data15 = {{{data5|}}} | header20 = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{nickname|}}} {{{nicknames|}}} {{{race|}}} {{{species|}}} {{{gender|}}} {{{title|}}} {{{occupation|}}} {{{position|}}} {{{class|}}} {{{affiliation|}}} {{{alignment|}}} {{{fighting_style|}}} {{{weapon|}}} {{{family|}}} {{{spouse|}}} {{{spouses|}}} {{{significant_other|}}} {{{significant_others|}}} {{{children|}}} {{{relatives|}}} {{{religion|}}} {{{origin|}}} {{{home|}}} {{{nationality|}}} {{{data21|}}} {{{data22|}}} {{{data23|}}} {{{data24|}}} {{{data25|}}} | {{If empty |{{{info-hdr|}}} |In-universe information }} }} }} | label21 = Full name | data21 = {{{full_name|}}} | label22 = {{#if: {{{alias|}}} | Alias | Aliases }} | data22 = {{If empty |{{{alias|}}} |{{{aliases|}}} }} | label23 = {{#if: {{{nickname|}}} | Nickname | Nicknames }} | data23 = {{If empty |{{{nickname|}}} |{{{nicknames|}}} }} | label24 = {{#if: {{{race|}}} | Race | Species }} | data24 = {{If empty |{{{race|}}} |{{{species|}}} }} | label25 = Gender | data25 = {{{gender|}}} | label26 = Title | data26 = {{{title|}}} | label27 = {{#if: {{{occupation|}}} | Occupation | {{#if: {{{position|}}} | Position | Class }} }} | data27 = {{If empty |{{{occupation|}}} |{{{position|}}} |{{{class|}}} }} | label28 = {{#if: {{{affiliation|}}} | Affiliation | Alignment }} | data28 = {{If empty |{{{affiliation|}}} |{{{alignment|}}} }} | label29 = Fighting style | data29 = {{{fighting_style|}}} | label30 = Weapon | data30 = {{{weapon|}}} | label31 = Family | data31 = {{{family|}}} | label32 = {{#if: {{{spouse|}}} | Spouse | Spouses }} | data32 = {{If empty |{{{spouse|}}} |{{{spouses|}}} }} | label33 = {{#if: {{{significant_other|}}} | Significant {{nowrap|other}} | Significant {{nowrap|others}} }} | data33 = {{If empty |{{{significant_other|}}} |{{{significant_others|}}} }} | label34 = Children | data34 = {{{children|}}} | label35 = Relatives | data35 = {{{relatives|}}} | label36 = Religion | data36 = {{{religion|}}} | label37 = {{#if: {{{origin|}}} | Origin | Home }} | data37 = {{If empty |{{{origin|}}} |{{{home|}}} }} | label38 = Nationality | data38 = {{{nationality|}}} | label39 = {{{lbl21|}}} | data39 = {{{data21|}}} | label40 = {{{lbl22|}}} | data40 = {{{data22|}}} | label41 = {{{lbl23|}}} | data41 = {{{data23|}}} | label42 = {{{lbl24|}}} | data42 = {{{data24|}}} | label43 = {{{lbl25|}}} | data43 = {{{data25|}}} | header50 = {{#if: {{{data31|}}} {{{data32|}}} {{{data33|}}} {{{data34|}}} {{{data35|}}} | {{{extra-hdr|}}} }} | label51 = {{{lbl31|}}} | data51 = {{{data31|}}} | label52 = {{{lbl32|}}} | data52 = {{{data32|}}} | label53 = {{{lbl33|}}} | data53 = {{{data33|}}} | label54 = {{{lbl34|}}} | data54 = {{{data34|}}} | label55 = {{{lbl35|}}} | data55 = {{{data35|}}} }}<!-- Start tracking -->{{Main other |{{#if: {{{lbl35|}}} {{{data35|}}} {{{lbl25|}}} {{{data25|}}} {{{lbl5|}}} {{{data5|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|5{{PAGENAME}}]] | {{#if: {{{lbl34|}}} {{{data34|}}} {{{lbl24|}}} {{{data24|}}} {{{lbl4|}}} {{{data4|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|4{{PAGENAME}}]] | {{#if: {{{lbl33|}}} {{{data33|}}} {{{lbl23|}}} {{{data23|}}} {{{lbl3|}}} {{{data3|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|3{{PAGENAME}}]] | {{#if: {{{lbl32|}}} {{{data32|}}} {{{lbl22|}}} {{{data22|}}} {{{lbl2|}}} {{{data2|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|2{{PAGENAME}}]] }} }} }} }}<!-- -->{{Ensure AAA contrast ratio|base={{If empty |{{{color|}}} |{{{colour|}}} }}|category={{Main other|[[Category:Articles using infoboxes for fictional elements with invalid color combination]]}}}}}}<!-- -->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox character with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox character]] with unknown parameter "_VALUE_"| adapted_by | affiliation | alias | aliases | alignment | alt | caption | children | class | color | colour | creator | based_on | data1 | data2 | data3 | data4 | data5 | data21 | data22 | data23 | data24 | data25 | data31 | data32 | data33 | data34 | data35 | designer | extra-hdr | family | fighting_style | first | first_date | first_issue | first_major | first_minor | firstgame | franchise | full_name | gender | home | image | image_size | image_upright | info-hdr | last | last_date | last_issue | last_major | last_minor | lbl1 | lbl2 | lbl3 | lbl4 | lbl5 | lbl21 | lbl22 | lbl23 | lbl24 | lbl25 | lbl31 | lbl32 | lbl33 | lbl34 | lbl35 | motion_actor | multiple | name | nationality | nickname | nicknames | noinfo | occupation | origin | portrayer | position | race | relatives | religion | series | significant_other | significant_others | species | spouse | spouses | title | voice | weapon }}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage, not here! --> </noinclude> f8e986420b84a311dfa3fd06b2de2ba15d003a04 Module:Lua banner 828 60 125 2020-06-10T18:51:54Z Infobox>MSGJ 0 show link to module sandbox, requested by [[User:Andrybak]] Scribunto text/plain -- This module implements the {{lua}} template. local yesno = require('Module:Yesno') local mList = require('Module:List') local mTableTools = require('Module:TableTools') local mMessageBox = require('Module:Message box') local p = {} function p.main(frame) local origArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do v = v:match('^%s*(.-)%s*$') if v ~= '' then args[k] = v end end return p._main(args) end function p._main(args) local modules = mTableTools.compressSparseArray(args) local box = p.renderBox(modules) local trackingCategories = p.renderTrackingCategories(args, modules) return box .. trackingCategories end function p.renderBox(modules) local boxArgs = {} if #modules < 1 then boxArgs.text = '<strong class="error">Error: no modules specified</strong>' else local moduleLinks = {} for i, module in ipairs(modules) do moduleLinks[i] = string.format('[[:%s]]', module) local maybeSandbox = mw.title.new(module .. '/sandbox') if maybeSandbox.exists then moduleLinks[i] = moduleLinks[i] .. string.format(' ([[:%s|sandbox]])', maybeSandbox.fullText) end end local moduleList = mList.makeList('bulleted', moduleLinks) local title = mw.title.getCurrentTitle() if title.subpageText == "doc" then title = title.basePageTitle end if title.contentModel == "Scribunto" then boxArgs.text = 'This module depends on the following other modules:' .. moduleList else boxArgs.text = 'This template uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList end end boxArgs.type = 'notice' boxArgs.small = true boxArgs.image = '[[File:Lua-logo-nolabel.svg|30px|alt=|link=]]' return mMessageBox.main('mbox', boxArgs) end function p.renderTrackingCategories(args, modules, titleObj) if yesno(args.nocat) then return '' end local cats = {} -- Error category if #modules < 1 then cats[#cats + 1] = 'Lua templates with errors' end -- Lua templates category titleObj = titleObj or mw.title.getCurrentTitle() local subpageBlacklist = { doc = true, sandbox = true, sandbox2 = true, testcases = true } if not subpageBlacklist[titleObj.subpageText] then local protCatName if titleObj.namespace == 10 then local category = args.category if not category then local categories = { ['Module:String'] = 'Lua String-based templates', ['Module:Math'] = 'Templates based on the Math Lua module', ['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module', ['Module:Citation'] = 'Lua-based citation templates' } categories['Module:Citation/CS1'] = categories['Module:Citation'] category = modules[1] and categories[modules[1]] category = category or 'Lua-based templates' end cats[#cats + 1] = category protCatName = "Templates using under-protected Lua modules" elseif titleObj.namespace == 828 then protCatName = "Modules depending on under-protected modules" end if not args.noprotcat and protCatName then local protLevels = { autoconfirmed = 1, extendedconfirmed = 2, templateeditor = 3, sysop = 4 } local currentProt if titleObj.id ~= 0 then -- id is 0 (page does not exist) if am previewing before creating a template. currentProt = titleObj.protectionLevels["edit"][1] end if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end for i, module in ipairs(modules) do if module ~= "WP:libraryUtil" then local moduleProt = mw.title.new(module).protectionLevels["edit"][1] if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end if moduleProt < currentProt then cats[#cats + 1] = protCatName break end end end end end for i, cat in ipairs(cats) do cats[i] = string.format('[[Category:%s]]', cat) end return table.concat(cats) end return p aaf9d18b952effc2a0bc890e66040f403c1e8a69 Module:String 828 66 137 2020-08-02T15:49:42Z Infobox>RexxS 0 separate annotations for str.match from those for str._match Scribunto text/plain --[[ This module is intended to provide access to basic string functions. Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace. Global options ignore_errors: If set to 'true' or 1, any error condition will result in an empty string being returned rather than an error message. error_category: If an error occurs, specifies the name of a category to include with the error message. The default category is [Category:Errors reported by Module String]. no_category: If set to 'true' or 1, no category will be added if an error is generated. Unit tests for this module are available at Module:String/tests. ]] local str = {} --[[ len This function returns the length of the target string. Usage: {{#invoke:String|len|target_string|}} OR {{#invoke:String|len|s=target_string}} Parameters s: The string whose length to report If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the target string. ]] function str.len( frame ) local new_args = str._getParameters( frame.args, {'s'} ) local s = new_args['s'] or '' return mw.ustring.len( s ) end --[[ sub This function returns a substring of the target string at specified indices. Usage: {{#invoke:String|sub|target_string|start_index|end_index}} OR {{#invoke:String|sub|s=target_string|i=start_index|j=end_index}} Parameters s: The string to return a subset of i: The fist index of the substring to return, defaults to 1. j: The last index of the string to return, defaults to the last character. The first character of the string is assigned an index of 1. If either i or j is a negative value, it is interpreted the same as selecting a character by counting from the end of the string. Hence, a value of -1 is the same as selecting the last character of the string. If the requested indices are out of range for the given string, an error is reported. ]] function str.sub( frame ) local new_args = str._getParameters( frame.args, { 's', 'i', 'j' } ) local s = new_args['s'] or '' local i = tonumber( new_args['i'] ) or 1 local j = tonumber( new_args['j'] ) or -1 local len = mw.ustring.len( s ) -- Convert negatives for range checking if i < 0 then i = len + i + 1 end if j < 0 then j = len + j + 1 end if i > len or j > len or i < 1 or j < 1 then return str._error( 'String subset index out of range' ) end if j < i then return str._error( 'String subset indices out of order' ) end return mw.ustring.sub( s, i, j ) end --[[ This function implements that features of {{str sub old}} and is kept in order to maintain these older templates. ]] function str.sublength( frame ) local i = tonumber( frame.args.i ) or 0 local len = tonumber( frame.args.len ) return mw.ustring.sub( frame.args.s, i + 1, len and ( i + len ) ) end --[[ _match This function returns a substring from the source string that matches a specified pattern. It is exported for use in other modules Usage: strmatch = require("Module:String")._match sresult = strmatch( s, pattern, start, match, plain, nomatch ) Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start the search. The first character of the string has index 1. Defaults to 1. match: In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1. plain: A flag indicating that the pattern should be understood as plain text. Defaults to false. nomatch: If no match is found, output the "nomatch" value rather than an error. For information on constructing Lua patterns, a form of [regular expression], see: * http://www.lua.org/manual/5.1/manual.html#5.4.1 * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns ]] -- This sub-routine is exported for use in other modules function str._match( s, pattern, start, match_index, plain_flag, nomatch ) if s == '' then return str._error( 'Target string is empty' ) end if pattern == '' then return str._error( 'Pattern string is empty' ) end start = tonumber(start) or 1 if math.abs(start) < 1 or math.abs(start) > mw.ustring.len( s ) then return str._error( 'Requested start is out of range' ) end if match_index == 0 then return str._error( 'Match index is out of range' ) end if plain_flag then pattern = str._escapePattern( pattern ) end local result if match_index == 1 then -- Find first match is simple case result = mw.ustring.match( s, pattern, start ) else if start > 1 then s = mw.ustring.sub( s, start ) end local iterator = mw.ustring.gmatch(s, pattern) if match_index > 0 then -- Forward search for w in iterator do match_index = match_index - 1 if match_index == 0 then result = w break end end else -- Reverse search local result_table = {} local count = 1 for w in iterator do result_table[count] = w count = count + 1 end result = result_table[ count + match_index ] end end if result == nil then if nomatch == nil then return str._error( 'Match not found' ) else return nomatch end else return result end end --[[ match This function returns a substring from the source string that matches a specified pattern. Usage: {{#invoke:String|match|source_string|pattern_string|start_index|match_number|plain_flag|nomatch_output}} OR {{#invoke:String|match|s=source_string|pattern=pattern_string|start=start_index |match=match_number|plain=plain_flag|nomatch=nomatch_output}} Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start the search. The first character of the string has index 1. Defaults to 1. match: In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1. plain: A flag indicating that the pattern should be understood as plain text. Defaults to false. nomatch: If no match is found, output the "nomatch" value rather than an error. If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from each string. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. If the match_number or start_index are out of range for the string being queried, then this function generates an error. An error is also generated if no match is found. If one adds the parameter ignore_errors=true, then the error will be suppressed and an empty string will be returned on any failure. For information on constructing Lua patterns, a form of [regular expression], see: * http://www.lua.org/manual/5.1/manual.html#5.4.1 * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns ]] -- This is the entry point for #invoke:String|match function str.match( frame ) local new_args = str._getParameters( frame.args, {'s', 'pattern', 'start', 'match', 'plain', 'nomatch'} ) local s = new_args['s'] or '' local start = tonumber( new_args['start'] ) or 1 local plain_flag = str._getBoolean( new_args['plain'] or false ) local pattern = new_args['pattern'] or '' local match_index = math.floor( tonumber(new_args['match']) or 1 ) local nomatch = new_args['nomatch'] return str._match( s, pattern, start, match_index, plain_flag, nomatch ) end --[[ pos This function returns a single character from the target string at position pos. Usage: {{#invoke:String|pos|target_string|index_value}} OR {{#invoke:String|pos|target=target_string|pos=index_value}} Parameters target: The string to search pos: The index for the character to return If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the target string. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. The first character has an index value of 1. If one requests a negative value, this function will select a character by counting backwards from the end of the string. In other words pos = -1 is the same as asking for the last character. A requested value of zero, or a value greater than the length of the string returns an error. ]] function str.pos( frame ) local new_args = str._getParameters( frame.args, {'target', 'pos'} ) local target_str = new_args['target'] or '' local pos = tonumber( new_args['pos'] ) or 0 if pos == 0 or math.abs(pos) > mw.ustring.len( target_str ) then return str._error( 'String index out of range' ) end return mw.ustring.sub( target_str, pos, pos ) end --[[ str_find This function duplicates the behavior of {{str_find}}, including all of its quirks. This is provided in order to support existing templates, but is NOT RECOMMENDED for new code and templates. New code is recommended to use the "find" function instead. Returns the first index in "source" that is a match to "target". Indexing is 1-based, and the function returns -1 if the "target" string is not present in "source". Important Note: If the "target" string is empty / missing, this function returns a value of "1", which is generally unexpected behavior, and must be accounted for separatetly. ]] function str.str_find( frame ) local new_args = str._getParameters( frame.args, {'source', 'target'} ) local source_str = new_args['source'] or '' local target_str = new_args['target'] or '' if target_str == '' then return 1 end local start = mw.ustring.find( source_str, target_str, 1, true ) if start == nil then start = -1 end return start end --[[ find This function allows one to search for a target string or pattern within another string. Usage: {{#invoke:String|find|source_str|target_string|start_index|plain_flag}} OR {{#invoke:String|find|source=source_str|target=target_str|start=start_index|plain=plain_flag}} Parameters source: The string to search target: The string or pattern to find within source start: The index within the source string to start the search, defaults to 1 plain: Boolean flag indicating that target should be understood as plain text and not as a Lua style regular expression, defaults to true If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. This function returns the first index >= "start" where "target" can be found within "source". Indices are 1-based. If "target" is not found, then this function returns 0. If either "source" or "target" are missing / empty, this function also returns 0. This function should be safe for UTF-8 strings. ]] function str.find( frame ) local new_args = str._getParameters( frame.args, {'source', 'target', 'start', 'plain' } ) local source_str = new_args['source'] or '' local pattern = new_args['target'] or '' local start_pos = tonumber(new_args['start']) or 1 local plain = new_args['plain'] or true if source_str == '' or pattern == '' then return 0 end plain = str._getBoolean( plain ) local start = mw.ustring.find( source_str, pattern, start_pos, plain ) if start == nil then start = 0 end return start end --[[ replace This function allows one to replace a target string or pattern within another string. Usage: {{#invoke:String|replace|source_str|pattern_string|replace_string|replacement_count|plain_flag}} OR {{#invoke:String|replace|source=source_string|pattern=pattern_string|replace=replace_string| count=replacement_count|plain=plain_flag}} Parameters source: The string to search pattern: The string or pattern to find within source replace: The replacement text count: The number of occurences to replace, defaults to all. plain: Boolean flag indicating that pattern should be understood as plain text and not as a Lua style regular expression, defaults to true ]] function str.replace( frame ) local new_args = str._getParameters( frame.args, {'source', 'pattern', 'replace', 'count', 'plain' } ) local source_str = new_args['source'] or '' local pattern = new_args['pattern'] or '' local replace = new_args['replace'] or '' local count = tonumber( new_args['count'] ) local plain = new_args['plain'] or true if source_str == '' or pattern == '' then return source_str end plain = str._getBoolean( plain ) if plain then pattern = str._escapePattern( pattern ) replace = mw.ustring.gsub( replace, "%%", "%%%%" ) --Only need to escape replacement sequences. end local result if count ~= nil then result = mw.ustring.gsub( source_str, pattern, replace, count ) else result = mw.ustring.gsub( source_str, pattern, replace ) end return result end --[[ simple function to pipe string.rep to templates. ]] function str.rep( frame ) local repetitions = tonumber( frame.args[2] ) if not repetitions then return str._error( 'function rep expects a number as second parameter, received "' .. ( frame.args[2] or '' ) .. '"' ) end return string.rep( frame.args[1] or '', repetitions ) end --[[ escapePattern This function escapes special characters from a Lua string pattern. See [1] for details on how patterns work. [1] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns Usage: {{#invoke:String|escapePattern|pattern_string}} Parameters pattern_string: The pattern string to escape. ]] function str.escapePattern( frame ) local pattern_str = frame.args[1] if not pattern_str then return str._error( 'No pattern string specified' ) end local result = str._escapePattern( pattern_str ) return result end --[[ count This function counts the number of occurrences of one string in another. ]] function str.count(frame) local args = str._getParameters(frame.args, {'source', 'pattern', 'plain'}) local source = args.source or '' local pattern = args.pattern or '' local plain = str._getBoolean(args.plain or true) if plain then pattern = str._escapePattern(pattern) end local _, count = mw.ustring.gsub(source, pattern, '') return count end --[[ endswith This function determines whether a string ends with another string. ]] function str.endswith(frame) local args = str._getParameters(frame.args, {'source', 'pattern'}) local source = args.source or '' local pattern = args.pattern or '' if pattern == '' then -- All strings end with the empty string. return "yes" end if mw.ustring.sub(source, -mw.ustring.len(pattern), -1) == pattern then return "yes" else return "" end end --[[ join Join all non empty arguments together; the first argument is the separator. Usage: {{#invoke:String|join|sep|one|two|three}} ]] function str.join(frame) local args = {} local sep for _, v in ipairs( frame.args ) do if sep then if v ~= '' then table.insert(args, v) end else sep = v end end return table.concat( args, sep or '' ) end --[[ Helper function that populates the argument list given that user may need to use a mix of named and unnamed parameters. This is relevant because named parameters are not identical to unnamed parameters due to string trimming, and when dealing with strings we sometimes want to either preserve or remove that whitespace depending on the application. ]] function str._getParameters( frame_args, arg_list ) local new_args = {} local index = 1 local value for _, arg in ipairs( arg_list ) do value = frame_args[arg] if value == nil then value = frame_args[index] index = index + 1 end new_args[arg] = value end return new_args end --[[ Helper function to handle error messages. ]] function str._error( error_str ) local frame = mw.getCurrentFrame() local error_category = frame.args.error_category or 'Errors reported by Module String' local ignore_errors = frame.args.ignore_errors or false local no_category = frame.args.no_category or false if str._getBoolean(ignore_errors) then return '' end local error_str = '<strong class="error">String Module Error: ' .. error_str .. '</strong>' if error_category ~= '' and not str._getBoolean( no_category ) then error_str = '[[Category:' .. error_category .. ']]' .. error_str end return error_str end --[[ Helper Function to interpret boolean strings ]] function str._getBoolean( boolean_str ) local boolean_value if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower() if boolean_str == 'false' or boolean_str == 'no' or boolean_str == '0' or boolean_str == '' then boolean_value = false else boolean_value = true end elseif type( boolean_str ) == 'boolean' then boolean_value = boolean_str else error( 'No boolean value found' ) end return boolean_value end --[[ Helper function that escapes all pattern characters so that they will be treated as plain text. ]] function str._escapePattern( pattern_str ) return mw.ustring.gsub( pattern_str, "([%(%)%.%%%+%-%*%?%[%^%$%]])", "%%%1" ) end return str 6df794dd52434e0f6a372c9918f5a9dedd15f579 Template:Yesno 10 37 76 2020-08-28T03:15:17Z Infobox character>Xaosflux 0 add additional paramerters, "t", "f" - requested on talk - worked in sandbox /testcases wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#switch: {{<includeonly>safesubst:</includeonly>lc: {{{1|¬}}} }} |no |n |f |false |off |0 = {{{no|<!-- null -->}}} | = {{{blank|{{{no|<!-- null -->}}}}}} |¬ = {{{¬|}}} |yes |y |t |true |on |1 = {{{yes|yes}}} |#default = {{{def|{{{yes|yes}}}}}} }}<noinclude> {{Documentation}} </noinclude> 629c2937bc5cf7cfe13cd2a598582af832782399 Module:Protection banner/config 828 65 135 2020-09-06T00:07:52Z Infobox>ProcrastinatingReader 0 fix broken testcase & improper categorisation, per talk Scribunto text/plain -- This module provides configuration data for [[Module:Protection banner]]. return { -------------------------------------------------------------------------------- -- -- BANNER DATA -- -------------------------------------------------------------------------------- --[[ -- Banner data consists of six fields: -- * text - the main protection text that appears at the top of protection -- banners. -- * explanation - the text that appears below the main protection text, used -- to explain the details of the protection. -- * tooltip - the tooltip text you see when you move the mouse over a small -- padlock icon. -- * link - the page that the small padlock icon links to. -- * alt - the alt text for the small padlock icon. This is also used as tooltip -- text for the large protection banners. -- * image - the padlock image used in both protection banners and small padlock -- icons. -- -- The module checks in three separate tables to find a value for each field. -- First it checks the banners table, which has values specific to the reason -- for the page being protected. Then the module checks the defaultBanners -- table, which has values specific to each protection level. Finally, the -- module checks the masterBanner table, which holds data for protection -- templates to use if no data has been found in the previous two tables. -- -- The values in the banner data can take parameters. These are specified -- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name -- enclosed in curly braces). -- -- Available parameters: -- -- ${CURRENTVERSION} - a link to the page history or the move log, with the -- display message "current-version-edit-display" or -- "current-version-move-display". -- -- ${EDITREQUEST} - a link to create an edit request for the current page. -- -- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes -- on the talk page; you may submit a request to ask an administrator to make -- an edit if it is minor or supported by consensus." -- -- ${IMAGELINK} - a link to set the image to, depending on the protection -- action and protection level. -- -- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry -- is set. E.g. "Editing of this page by new or unregistered users is currently -- disabled until dd Month YYYY." -- -- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation -- so that it can be used in run-on sentences. -- -- ${PAGETYPE} - the type of the page, e.g. "article" or "template". -- Defined in the cfg.pagetypes table. -- -- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g. -- "Editing of this page by new or unregistered users is currently disabled" -- -- ${PROTECTIONDATE} - the protection date, if it has been supplied to the -- template. -- -- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or -- "semi-protected". -- -- ${PROTECTIONLOG} - a link to the protection log or the pending changes log, -- depending on the protection action. -- -- ${TALKPAGE} - a link to the talk page. If a section is specified, links -- straight to that talk page section. -- -- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to -- create a blurb like "This template is semi-protected", or "This article is -- move-protected until DD Month YYYY". -- -- ${VANDAL} - links for the specified username (or the root page name) -- using Module:Vandal-m. -- -- Functions -- -- For advanced users, it is possible to use Lua functions instead of strings -- in the banner config tables. Using functions gives flexibility that is not -- possible just by using parameters. Functions take two arguments, the -- protection object and the template arguments, and they must output a string. -- -- For example: -- -- text = function (protectionObj, args) -- if protectionObj.level == 'autoconfirmed' then -- return 'foo' -- else -- return 'bar' -- end -- end -- -- Some protection object properties and methods that may be useful: -- protectionObj.action - the protection action -- protectionObj.level - the protection level -- protectionObj.reason - the protection reason -- protectionObj.expiry - the expiry. Nil if unset, the string "indef" if set -- to indefinite, and the protection time in unix time if temporary. -- protectionObj.protectionDate - the protection date in unix time, or nil if -- unspecified. -- protectionObj.bannerConfig - the banner config found by the module. Beware -- of editing the config field used by the function, as it could create an -- infinite loop. -- protectionObj:isProtected - returns a boolean showing whether the page is -- protected. -- protectionObj:isTemporary - returns a boolean showing whether the expiry is -- temporary. -- protectionObj:isIncorrect - returns a boolean showing whether the protection -- template is incorrect. --]] -- The master banner data, used if no values have been found in banners or -- defaultBanners. masterBanner = { text = '${INTROBLURB}', explanation = '${EXPLANATIONBLURB}', tooltip = '${TOOLTIPBLURB}', link = '${IMAGELINK}', alt = 'Page ${PROTECTIONLEVEL}' }, -- The default banner data. This holds banner data for different protection -- levels. -- *required* - this table needs edit, move, autoreview and upload subtables. defaultBanners = { edit = {}, move = {}, autoreview = { default = { alt = 'Page protected with pending changes', tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users', image = 'Pending-protection-shackle.svg' } }, upload = {} }, -- The banner data. This holds banner data for different protection reasons. -- In fact, the reasons specified in this table control which reasons are -- valid inputs to the first positional parameter. -- -- There is also a non-standard "description" field that can be used for items -- in this table. This is a description of the protection reason for use in the -- module documentation. -- -- *required* - this table needs edit, move, autoreview and upload subtables. banners = { edit = { blp = { description = 'For pages protected to promote compliance with the' .. ' [[Wikipedia:Biographies of living persons' .. '|biographies of living persons]] policy', text = '${INTROFRAGMENT} to promote compliance with' .. ' [[Wikipedia:Biographies of living persons' .. "|Wikipedia's&nbsp;policy on&nbsp;the&nbsp;biographies" .. ' of&nbsp;living&nbsp;people]].', tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on' .. ' biographies of living persons', }, dmca = { description = 'For pages protected by the Wikimedia Foundation' .. ' due to [[Digital Millennium Copyright Act]] takedown requests', explanation = function (protectionObj, args) local ret = 'Pursuant to a rights owner notice under the Digital' .. ' Millennium Copyright Act (DMCA) regarding some content' .. ' in this article, the Wikimedia Foundation acted under' .. ' applicable law and took down and restricted the content' .. ' in question.' if args.notice then ret = ret .. ' A copy of the received notice can be found here: ' .. args.notice .. '.' end ret = ret .. ' For more information, including websites discussing' .. ' how to file a counter-notice, please see' .. " [[Wikipedia:Office actions]] and the article's ${TALKPAGE}." .. "'''Do not remove this template from the article until the" .. " restrictions are withdrawn'''." return ret end, image = 'Office-protection-shackle.svg', }, dispute = { description = 'For pages protected due to editing disputes', text = function (protectionObj, args) -- Find the value of "disputes". local display = 'disputes' local disputes if args.section then disputes = string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[protectionObj.title.namespace].talk.name, protectionObj.title.text, args.section, display ) else disputes = display end -- Make the blurb, depending on the expiry. local msg if type(protectionObj.expiry) == 'number' then msg = '${INTROFRAGMENT} or until editing %s have been resolved.' else msg = '${INTROFRAGMENT} until editing %s have been resolved.' end return string.format(msg, disputes) end, explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', tooltip = '${TOOLTIPFRAGMENT} due to editing disputes', }, ecp = { description = 'For articles in topic areas authorized by' .. ' [[Wikipedia:Arbitration Committee|ArbCom]] or' .. ' meets the criteria for community use', tooltip = 'This ${PAGETYPE} is extended-confirmed protected', alt = 'Extended-protected ${PAGETYPE}', }, mainpage = { description = 'For pages protected for being displayed on the [[Main Page]]', text = 'This file is currently' .. ' [[Wikipedia:This page is protected|protected]] from' .. ' editing because it is currently or will soon be displayed' .. ' on the [[Main Page]].', explanation = 'Images on the Main Page are protected due to their high' .. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.' .. '<br /><span style="font-size:90%;">' .. "'''Administrators:''' Once this image is definitely off the Main Page," .. ' please unprotect this file, or reduce to semi-protection,' .. ' as appropriate.</span>', }, office = { description = 'For pages protected by the Wikimedia Foundation', text = function (protectionObj, args) local ret = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.' if protectionObj.protectionDate then ret = ret .. ' It has been protected since ${PROTECTIONDATE}.' end return ret end, explanation = "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not remove protection from this" .. " page unless you are authorized by the Wikimedia Foundation to do" .. " so.'''", image = 'Office-protection-shackle.svg', }, reset = { description = 'For pages protected by the Wikimedia Foundation and' .. ' "reset" to a bare-bones version', text = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.', explanation = function (protectionObj, args) local ret = '' if protectionObj.protectionDate then ret = ret .. 'On ${PROTECTIONDATE} this ${PAGETYPE} was' else ret = ret .. 'This ${PAGETYPE} has been' end ret = ret .. ' reduced to a' .. ' simplified, "bare bones" version so that it may be completely' .. ' rewritten to ensure it meets the policies of' .. ' [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].' .. ' Standard Wikipedia policies will apply to its rewriting—which' .. ' will eventually be open to all editors—and will be strictly' .. ' enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while' .. ' it is being rebuilt.\n\n' .. 'Any insertion of material directly from' .. ' pre-protection revisions of the ${PAGETYPE} will be removed, as' .. ' will any material added to the ${PAGETYPE} that is not properly' .. ' sourced. The associated talk page(s) were also cleared on the' .. " same date.\n\n" .. "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not override" .. " this action, and do not remove protection from this page," .. " unless you are authorized by the Wikimedia Foundation" .. " to do so. No editor may remove this notice.'''" return ret end, image = 'Office-protection-shackle.svg', }, sock = { description = 'For pages protected due to' .. ' [[Wikipedia:Sock puppetry|sock puppetry]]', text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of' .. ' [[Wikipedia:Blocking policy|blocked]] or' .. ' [[Wikipedia:Banning policy|banned users]]' .. ' from editing it.', tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from' .. ' editing it', }, template = { description = 'For [[Wikipedia:High-risk templates|high-risk]]' .. ' templates and Lua modules', text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},' .. ' as it is [[Wikipedia:High-risk templates|high-risk]].', explanation = 'Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] or' .. ' [[Wikipedia:Template editor|template editor]] to make an edit if' .. ' it is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by' .. ' [[Wikipedia:Consensus|consensus]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.', tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}' .. ' to prevent vandalism', alt = 'Permanently protected ${PAGETYPE}', }, usertalk = { description = 'For pages protected against disruptive edits by a' .. ' particular user', text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,' .. ' such as abusing the' .. ' &#123;&#123;[[Template:unblock|unblock]]&#125;&#125; template.', explanation = 'If you cannot edit this user talk page and you need to' .. ' make a change or leave a message, you can' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for edits to a protected page' .. '|request an edit]],' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]],' .. ' [[Special:Userlogin|log in]],' .. ' or [[Special:UserLogin/signup|create an account]].', }, vandalism = { description = 'For pages protected against' .. ' [[Wikipedia:Vandalism|vandalism]]', text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].', explanation = function (protectionObj, args) local ret = '' if protectionObj.level == 'sysop' then ret = ret .. "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ' end return ret .. '${EXPLANATIONBLURB}' end, tooltip = '${TOOLTIPFRAGMENT} due to vandalism', } }, move = { dispute = { description = 'For pages protected against page moves due to' .. ' disputes over the page title', explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', image = 'Move-protection-shackle.svg' }, vandalism = { description = 'For pages protected against' .. ' [[Wikipedia:Vandalism#Page-move vandalism' .. ' |page-move vandalism]]' } }, autoreview = {}, upload = {} }, -------------------------------------------------------------------------------- -- -- GENERAL DATA TABLES -- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Protection blurbs -------------------------------------------------------------------------------- -- This table produces the protection blurbs available with the -- ${PROTECTIONBLURB} parameter. It is sorted by protection action and -- protection level, and is checked by the module in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionBlurbs = { edit = { default = 'This ${PAGETYPE} is currently [[Help:Protection|' .. 'protected]] from editing', autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access' .. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered' .. ' users|unregistered]] users is currently [[Help:Protection|disabled]]', extendedconfirmed = 'This ${PAGETYPE} is currently under extended confirmed protection', }, move = { default = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]' .. ' from [[Help:Moving a page|page moves]]' }, autoreview = { default = 'All edits made to this ${PAGETYPE} by' .. ' [[Wikipedia:User access levels#New users|new]] or' .. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]' .. ' users are currently' .. ' [[Wikipedia:Pending changes|subject to review]]' }, upload = { default = 'Uploading new versions of this ${PAGETYPE} is currently disabled' } }, -------------------------------------------------------------------------------- -- Explanation blurbs -------------------------------------------------------------------------------- -- This table produces the explanation blurbs available with the -- ${EXPLANATIONBLURB} parameter. It is sorted by protection action, -- protection level, and whether the page is a talk page or not. If the page is -- a talk page it will have a talk key of "talk"; otherwise it will have a talk -- key of "subject". The table is checked in the following order: -- 1. page's protection action, page's protection level, page's talk key -- 2. page's protection action, page's protection level, default talk key -- 3. page's protection action, default protection level, page's talk key -- 4. page's protection action, default protection level, default talk key -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. explanationBlurbs = { edit = { autoconfirmed = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' .. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].', }, extendedconfirmed = { default = 'Extended confirmed protection prevents edits from all unregistered editors' .. ' and registered users with fewer than 30 days tenure and 500 edits.' .. ' The [[Wikipedia:Protection policy#extended|policy on community use]]' .. ' specifies that extended confirmed protection can be applied to combat' .. ' disruption, if semi-protection has proven to be ineffective.' .. ' Extended confirmed protection may also be applied to enforce' .. ' [[Wikipedia:Arbitration Committee|arbitration sanctions]].' .. ' Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask for uncontroversial changes supported by' .. ' [[Wikipedia:Consensus|consensus]].' }, default = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Please discuss any changes on the ${TALKPAGE}; you' .. ' may ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' .. '|consensus]]. You may also [[Wikipedia:Requests for' .. ' page protection#Current requests for reduction in protection level' .. '|request]] that this page be unprotected.', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' You may [[Wikipedia:Requests for page' .. ' protection#Current requests for edits to a protected page|request an' .. ' edit]] to this page, or [[Wikipedia:Requests for' .. ' page protection#Current requests for reduction in protection level' .. '|ask]] for it to be unprotected.' } }, move = { default = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but cannot be moved' .. ' until unprotected. Please discuss any suggested moves on the' .. ' ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but cannot be moved' .. ' until unprotected. Please discuss any suggested moves at' .. ' [[Wikipedia:Requested moves]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.' } }, autoreview = { default = { default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Edits to this ${PAGETYPE} by new and unregistered users' .. ' will not be visible to readers until they are accepted by' .. ' a reviewer. To avoid the need for your edits to be' .. ' reviewed, you may' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].' }, }, upload = { default = { default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but new versions of the file' .. ' cannot be uploaded until it is unprotected. You can' .. ' request that a new version be uploaded by using a' .. ' [[Wikipedia:Edit requests|protected edit request]], or you' .. ' can [[Wikipedia:Requests for page protection|request]]' .. ' that the file be unprotected.' } } }, -------------------------------------------------------------------------------- -- Protection levels -------------------------------------------------------------------------------- -- This table provides the data for the ${PROTECTIONLEVEL} parameter, which -- produces a short label for different protection levels. It is sorted by -- protection action and protection level, and is checked in the following -- order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionLevels = { edit = { default = 'protected', templateeditor = 'template-protected', extendedconfirmed = 'extended-protected', autoconfirmed = 'semi-protected', }, move = { default = 'move-protected' }, autoreview = { }, upload = { default = 'upload-protected' } }, -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- This table lists different padlock images for each protection action and -- protection level. It is used if an image is not specified in any of the -- banner data tables, and if the page does not satisfy the conditions for using -- the ['image-filename-indef'] image. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level images = { edit = { default = 'Full-protection-shackle.svg', templateeditor = 'Template-protection-shackle.svg', extendedconfirmed = 'Extended-protection-shackle.svg', autoconfirmed = 'Semi-protection-shackle.svg' }, move = { default = 'Move-protection-shackle.svg', }, autoreview = { default = 'Pending-protection-shackle.svg' }, upload = { default = 'Upload-protection-shackle.svg' } }, -- Pages with a reason specified in this table will show the special "indef" -- padlock, defined in the 'image-filename-indef' message, if no expiry is set. indefImageReasons = { template = true }, -------------------------------------------------------------------------------- -- Image links -------------------------------------------------------------------------------- -- This table provides the data for the ${IMAGELINK} parameter, which gets -- the image link for small padlock icons based on the page's protection action -- and protection level. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. imageLinks = { edit = { default = 'Wikipedia:Protection policy#full', templateeditor = 'Wikipedia:Protection policy#template', extendedconfirmed = 'Wikipedia:Protection policy#extended', autoconfirmed = 'Wikipedia:Protection policy#semi' }, move = { default = 'Wikipedia:Protection policy#move' }, autoreview = { default = 'Wikipedia:Protection policy#pending' }, upload = { default = 'Wikipedia:Protection policy#upload' } }, -------------------------------------------------------------------------------- -- Padlock indicator names -------------------------------------------------------------------------------- -- This table provides the "name" attribute for the <indicator> extension tag -- with which small padlock icons are generated. All indicator tags on a page -- are displayed in alphabetical order based on this attribute, and with -- indicator tags with duplicate names, the last tag on the page wins. -- The attribute is chosen based on the protection action; table keys must be a -- protection action name or the string "default". padlockIndicatorNames = { autoreview = 'pp-autoreview', default = 'pp-default' }, -------------------------------------------------------------------------------- -- Protection categories -------------------------------------------------------------------------------- --[[ -- The protection categories are stored in the protectionCategories table. -- Keys to this table are made up of the following strings: -- -- 1. the expiry date -- 2. the namespace -- 3. the protection reason (e.g. "dispute" or "vandalism") -- 4. the protection level (e.g. "sysop" or "autoconfirmed") -- 5. the action (e.g. "edit" or "move") -- -- When the module looks up a category in the table, first it will will check to -- see a key exists that corresponds to all five parameters. For example, a -- user page semi-protected from vandalism for two weeks would have the key -- "temp-user-vandalism-autoconfirmed-edit". If no match is found, the module -- changes the first part of the key to "all" and checks the table again. It -- keeps checking increasingly generic key combinations until it finds the -- field, or until it reaches the key "all-all-all-all-all". -- -- The module uses a binary matrix to determine the order in which to search. -- This is best demonstrated by a table. In this table, the "0" values -- represent "all", and the "1" values represent the original data (e.g. -- "indef" or "file" or "vandalism"). -- -- expiry namespace reason level action -- order -- 1 1 1 1 1 1 -- 2 0 1 1 1 1 -- 3 1 0 1 1 1 -- 4 0 0 1 1 1 -- 5 1 1 0 1 1 -- 6 0 1 0 1 1 -- 7 1 0 0 1 1 -- 8 0 0 0 1 1 -- 9 1 1 1 0 1 -- 10 0 1 1 0 1 -- 11 1 0 1 0 1 -- 12 0 0 1 0 1 -- 13 1 1 0 0 1 -- 14 0 1 0 0 1 -- 15 1 0 0 0 1 -- 16 0 0 0 0 1 -- 17 1 1 1 1 0 -- 18 0 1 1 1 0 -- 19 1 0 1 1 0 -- 20 0 0 1 1 0 -- 21 1 1 0 1 0 -- 22 0 1 0 1 0 -- 23 1 0 0 1 0 -- 24 0 0 0 1 0 -- 25 1 1 1 0 0 -- 26 0 1 1 0 0 -- 27 1 0 1 0 0 -- 28 0 0 1 0 0 -- 29 1 1 0 0 0 -- 30 0 1 0 0 0 -- 31 1 0 0 0 0 -- 32 0 0 0 0 0 -- -- In this scheme the action has the highest priority, as it is the last -- to change, and the expiry has the least priority, as it changes the most. -- The priorities of the expiry, the protection level and the action are -- fixed, but the priorities of the reason and the namespace can be swapped -- through the use of the cfg.bannerDataNamespaceHasPriority table. --]] -- If the reason specified to the template is listed in this table, -- namespace data will take priority over reason data in the protectionCategories -- table. reasonsWithNamespacePriority = { vandalism = true, }, -- The string to use as a namespace key for the protectionCategories table for each -- namespace number. categoryNamespaceKeys = { [ 2] = 'user', [ 3] = 'user', [ 4] = 'project', [ 6] = 'file', [ 8] = 'mediawiki', [ 10] = 'template', [ 12] = 'project', [ 14] = 'category', [100] = 'portal', [828] = 'module', }, protectionCategories = { ['all|all|all|all|all'] = 'Wikipedia fully protected pages', ['all|all|office|all|all'] = 'Wikipedia Office-protected pages', ['all|all|reset|all|all'] = 'Wikipedia Office-protected pages', ['all|all|dmca|all|all'] = 'Wikipedia Office-protected pages', ['all|all|mainpage|all|all'] = 'Wikipedia fully-protected main page files', ['all|all|all|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|template|all|all|edit'] = 'Wikipedia fully protected templates', ['all|all|all|autoconfirmed|edit'] = 'Wikipedia semi-protected pages', ['indef|all|all|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected pages', ['all|all|blp|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected biographies of living people', ['temp|all|blp|autoconfirmed|edit'] = 'Wikipedia temporarily semi-protected biographies of living people', ['all|all|dispute|autoconfirmed|edit'] = 'Wikipedia pages semi-protected due to dispute', ['all|all|sock|autoconfirmed|edit'] = 'Wikipedia pages semi-protected from banned users', ['all|all|vandalism|autoconfirmed|edit'] = 'Wikipedia pages semi-protected against vandalism', ['all|category|all|autoconfirmed|edit'] = 'Wikipedia semi-protected categories', ['all|file|all|autoconfirmed|edit'] = 'Wikipedia semi-protected files', ['all|portal|all|autoconfirmed|edit'] = 'Wikipedia semi-protected portals', ['all|project|all|autoconfirmed|edit'] = 'Wikipedia semi-protected project pages', ['all|talk|all|autoconfirmed|edit'] = 'Wikipedia semi-protected talk pages', ['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates', ['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages', ['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', ['all|template|all|templateeditor|move'] = 'Wikipedia template-protected templates', -- move-protected ['all|all|blp|sysop|edit'] = 'Wikipedia indefinitely protected biographies of living people', ['temp|all|blp|sysop|edit'] = 'Wikipedia temporarily protected biographies of living people', ['all|all|dispute|sysop|edit'] = 'Wikipedia pages protected due to dispute', ['all|all|sock|sysop|edit'] = 'Wikipedia pages protected from banned users', ['all|all|vandalism|sysop|edit'] = 'Wikipedia pages protected against vandalism', ['all|category|all|sysop|edit'] = 'Wikipedia fully protected categories', ['all|file|all|sysop|edit'] = 'Wikipedia fully-protected files', ['all|project|all|sysop|edit'] = 'Wikipedia fully-protected project pages', ['all|talk|all|sysop|edit'] = 'Wikipedia fully-protected talk pages', ['all|template|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected templates', ['all|template|all|sysop|edit'] = 'Wikipedia fully protected templates', ['all|user|all|sysop|edit'] = 'Wikipedia fully protected user and user talk pages', ['all|module|all|all|edit'] = 'Wikipedia fully-protected modules', ['all|module|all|templateeditor|edit'] = 'Wikipedia template-protected modules', ['all|module|all|autoconfirmed|edit'] = 'Wikipedia semi-protected modules', ['all|all|all|sysop|move'] = 'Wikipedia move-protected pages', ['indef|all|all|sysop|move'] = 'Wikipedia indefinitely move-protected pages', ['all|all|dispute|sysop|move'] = 'Wikipedia pages move-protected due to dispute', ['all|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected due to vandalism', ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', ['all|project|all|sysop|move'] = 'Wikipedia move-protected project pages', ['all|talk|all|sysop|move'] = 'Wikipedia move-protected talk pages', ['all|template|all|sysop|move'] = 'Wikipedia move-protected templates', ['all|user|all|sysop|move'] = 'Wikipedia move-protected user and user talk pages', ['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages', ['all|file|all|all|upload'] = 'Wikipedia upload-protected files', }, -------------------------------------------------------------------------------- -- Expiry category config -------------------------------------------------------------------------------- -- This table configures the expiry category behaviour for each protection -- action. -- * If set to true, setting that action will always categorise the page if -- an expiry parameter is not set. -- * If set to false, setting that action will never categorise the page. -- * If set to nil, the module will categorise the page if: -- 1) an expiry parameter is not set, and -- 2) a reason is provided, and -- 3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck -- table. expiryCheckActions = { edit = nil, move = false, autoreview = true, upload = false }, reasonsWithoutExpiryCheck = { blp = true, template = true, }, -------------------------------------------------------------------------------- -- Pagetypes -------------------------------------------------------------------------------- -- This table produces the page types available with the ${PAGETYPE} parameter. -- Keys are namespace numbers, or the string "default" for the default value. pagetypes = { [0] = 'article', [6] = 'file', [10] = 'template', [14] = 'category', [828] = 'module', default = 'page' }, -------------------------------------------------------------------------------- -- Strings marking indefinite protection -------------------------------------------------------------------------------- -- This table contains values passed to the expiry parameter that mean the page -- is protected indefinitely. indefStrings = { ['indef'] = true, ['indefinite'] = true, ['indefinitely'] = true, ['infinite'] = true, }, -------------------------------------------------------------------------------- -- Group hierarchy -------------------------------------------------------------------------------- -- This table maps each group to all groups that have a superset of the original -- group's page editing permissions. hierarchy = { sysop = {}, reviewer = {'sysop'}, filemover = {'sysop'}, templateeditor = {'sysop'}, extendedconfirmed = {'sysop'}, autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'}, user = {'autoconfirmed'}, ['*'] = {'user'} }, -------------------------------------------------------------------------------- -- Wrapper templates and their default arguments -------------------------------------------------------------------------------- -- This table contains wrapper templates used with the module, and their -- default arguments. Templates specified in this table should contain the -- following invocation, and no other template content: -- -- {{#invoke:Protection banner|main}} -- -- If other content is desired, it can be added between -- <noinclude>...</noinclude> tags. -- -- When a user calls one of these wrapper templates, they will use the -- default arguments automatically. However, users can override any of the -- arguments. wrappers = { ['Template:Pp'] = {}, ['Template:Pp-extended'] = {'ecp'}, ['Template:Pp-blp'] = {'blp'}, -- we don't need Template:Pp-create ['Template:Pp-dispute'] = {'dispute'}, ['Template:Pp-main-page'] = {'mainpage'}, ['Template:Pp-move'] = {action = 'move'}, ['Template:Pp-move-dispute'] = {'dispute', action = 'move'}, -- we don't need Template:Pp-move-indef ['Template:Pp-move-vandalism'] = {'vandalism', action = 'move'}, ['Template:Pp-office'] = {'office'}, ['Template:Pp-office-dmca'] = {'dmca'}, ['Template:Pp-pc'] = {action = 'autoreview', small = true}, ['Template:Pp-pc1'] = {action = 'autoreview', small = true}, ['Template:Pp-reset'] = {'reset'}, ['Template:Pp-semi-indef'] = {small = true}, ['Template:Pp-sock'] = {'sock'}, ['Template:Pp-template'] = {'template', small = true}, ['Template:Pp-upload'] = {action = 'upload'}, ['Template:Pp-usertalk'] = {'usertalk'}, ['Template:Pp-vandalism'] = {'vandalism'}, }, -------------------------------------------------------------------------------- -- -- MESSAGES -- -------------------------------------------------------------------------------- msg = { -------------------------------------------------------------------------------- -- Intro blurb and intro fragment -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${INTROBLURB} and -- ${INTROFRAGMENT} parameters. If the protection is temporary they use the -- intro-blurb-expiry or intro-fragment-expiry, and if not they use -- intro-blurb-noexpiry or intro-fragment-noexpiry. -- It is possible to use banner parameters in these messages. ['intro-blurb-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY}.', ['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}.', ['intro-fragment-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY},', ['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}', -------------------------------------------------------------------------------- -- Tooltip blurb -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${TOOLTIPBLURB} parameter. -- If the protection is temporary the tooltip-blurb-expiry message is used, and -- if not the tooltip-blurb-noexpiry message is used. -- It is possible to use banner parameters in these messages. ['tooltip-blurb-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.', ['tooltip-blurb-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}.', ['tooltip-fragment-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},', ['tooltip-fragment-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}', -------------------------------------------------------------------------------- -- Special explanation blurb -------------------------------------------------------------------------------- -- An explanation blurb for pages that cannot be unprotected, e.g. for pages -- in the MediaWiki namespace. -- It is possible to use banner parameters in this message. ['explanation-blurb-nounprotect'] = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Please discuss any changes on the ${TALKPAGE}; you' .. ' may ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' .. '|consensus]].', -------------------------------------------------------------------------------- -- Protection log display values -------------------------------------------------------------------------------- -- These messages determine the display values for the protection log link -- or the pending changes log link produced by the ${PROTECTIONLOG} parameter. -- It is possible to use banner parameters in these messages. ['protection-log-display'] = 'protection log', ['pc-log-display'] = 'pending changes log', -------------------------------------------------------------------------------- -- Current version display values -------------------------------------------------------------------------------- -- These messages determine the display values for the page history link -- or the move log link produced by the ${CURRENTVERSION} parameter. -- It is possible to use banner parameters in these messages. ['current-version-move-display'] = 'current title', ['current-version-edit-display'] = 'current version', -------------------------------------------------------------------------------- -- Talk page -------------------------------------------------------------------------------- -- This message determines the display value of the talk page link produced -- with the ${TALKPAGE} parameter. -- It is possible to use banner parameters in this message. ['talk-page-link-display'] = 'talk page', -------------------------------------------------------------------------------- -- Edit requests -------------------------------------------------------------------------------- -- This message determines the display value of the edit request link produced -- with the ${EDITREQUEST} parameter. -- It is possible to use banner parameters in this message. ['edit-request-display'] = 'submit an edit request', -------------------------------------------------------------------------------- -- Expiry date format -------------------------------------------------------------------------------- -- This is the format for the blurb expiry date. It should be valid input for -- the first parameter of the #time parser function. ['expiry-date-format'] = 'F j, Y "at" H:i e', -------------------------------------------------------------------------------- -- Tracking categories -------------------------------------------------------------------------------- -- These messages determine which tracking categories the module outputs. ['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates', ['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules', -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- These are images that are not defined by their protection action and protection level. ['image-filename-indef'] = 'Full-protection-shackle.svg', ['image-filename-default'] = 'Transparent.gif', -------------------------------------------------------------------------------- -- End messages -------------------------------------------------------------------------------- } -------------------------------------------------------------------------------- -- End configuration -------------------------------------------------------------------------------- } 2ffdf2aef6e0180ca9dae7541ea1a0a34477e8be Module:Effective protection level 828 56 115 2020-09-29T03:38:47Z Infobox>Jackmcbarn 0 bring in changes from sandbox Scribunto text/plain local p = {} -- Returns the permission required to perform a given action on a given title. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then local level = mw.ext.FlaggedRevs.getStabilitySettings(title) level = level and level.autoreview if level == 'review' then return 'reviewer' elseif level ~= '' then return level else return nil -- not '*'. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not '', as that would mean PC-protected but nobody can review end elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' and action ~= 'undelete' then error( 'First parameter must be one of edit, move, create, upload, undelete, autoreview', 2 ) end if title.namespace == 8 then -- MediaWiki namespace if title.text:sub(-3) == '.js' or title.text:sub(-4) == '.css' or title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page return 'interfaceadmin' else -- any non-JS/CSS MediaWiki page return 'sysop' end elseif title.namespace == 2 and title.isSubpage then if title.contentModel == 'javascript' or title.contentModel == 'css' then -- user JS or CSS page return 'interfaceadmin' elseif title.contentModel == 'json' then -- user JSON page return 'sysop' end end if action == 'undelete' then return 'sysop' end local level = title.protectionLevels[action] and title.protectionLevels[action][1] if level == 'sysop' or level == 'editprotected' then return 'sysop' elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page return 'sysop' elseif level == 'templateeditor' then return 'templateeditor' elseif action == 'move' then local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move. if blacklistentry and not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif title.namespace == 6 then return 'filemover' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end end local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename) if blacklistentry then if not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason return 'autoconfirmed' elseif level then return level elseif action == 'upload' then return 'autoconfirmed' elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts return 'user' else return '*' end end setmetatable(p, { __index = function(t, k) return function(frame) return t._main(k, frame.args[1]) end end }) return p 70256a489edf6be9808031b14a7e3ef3e025da97 Module:Transclusion count 828 68 141 2020-09-30T00:41:43Z Infobox>ProcrastinatingReader 0 add a truthy check too Scribunto text/plain local p = {} function p.fetch(frame) local template = nil local return_value = nil -- Use demo parameter if it exists, otherswise use current template name local namespace = mw.title.getCurrentTitle().namespace if frame.args["demo"] and frame.args["demo"] ~= "" then template = frame.args["demo"] elseif namespace == 10 then -- Template namespace template = mw.title.getCurrentTitle().text elseif namespace == 828 then -- Module namespace template = (mw.site.namespaces[828].name .. ":" .. mw.title.getCurrentTitle().text) end -- If in template or module namespace, look up count in /data if template ~= nil then namespace = mw.title.new(template, "Template").namespace if namespace == 10 or namespace == 828 then template = mw.ustring.gsub(template, "/doc$", "") -- strip /doc from end local index = mw.ustring.sub(mw.title.new(template).text,1,1) local data = mw.loadData('Module:Transclusion_count/data/' .. (mw.ustring.find(index, "%a") and index or "other")) return_value = tonumber(data[mw.ustring.gsub(template, " ", "_")]) end end -- If database value doesn't exist, use value passed to template if return_value == nil and frame.args[1] ~= nil then local arg1=mw.ustring.match(frame.args[1], '[%d,]+') if arg1 and arg1 ~= '' then return_value = tonumber(frame:callParserFunction('formatnum', arg1, 'R')) end end return return_value end return p 93d007354188de878140d3685a1cfe200c409115 Module:TableTools 828 67 139 2020-10-11T22:22:43Z Infobox>GorillaWarfare 0 Changed protection level for "[[Module:TableTools]]": [[WP:High-risk templates|High-risk Lua module]]: bumping protection level due to high usage, plus the stability of the module. See https://en.wikipedia.org/w/index.php?title=Wikipedia:Requests_for_page_protection&oldid=983044034#Module:TableTools ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)) Scribunto text/plain --[[ ------------------------------------------------------------------------------------ -- TableTools -- -- -- -- This module includes a number of functions for dealing with Lua tables. -- -- It is a meta-module, meant to be called from other Lua modules, and should -- -- not be called directly from #invoke. -- ------------------------------------------------------------------------------------ --]] local libraryUtil = require('libraryUtil') local p = {} -- Define often-used variables and functions. local floor = math.floor local infinity = math.huge local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti --[[ ------------------------------------------------------------------------------------ -- isPositiveInteger -- -- This function returns true if the given value is a positive integer, and false -- if not. Although it doesn't operate on tables, it is included here as it is -- useful for determining whether a given table key is in the array part or the -- hash part of a table. ------------------------------------------------------------------------------------ --]] function p.isPositiveInteger(v) return type(v) == 'number' and v >= 1 and floor(v) == v and v < infinity end --[[ ------------------------------------------------------------------------------------ -- isNan -- -- This function returns true if the given number is a NaN value, and false -- if not. Although it doesn't operate on tables, it is included here as it is -- useful for determining whether a value can be a valid table key. Lua will -- generate an error if a NaN is used as a table key. ------------------------------------------------------------------------------------ --]] function p.isNan(v) return type(v) == 'number' and tostring(v) == '-nan' end --[[ ------------------------------------------------------------------------------------ -- shallowClone -- -- This returns a clone of a table. The value returned is a new table, but all -- subtables and functions are shared. Metamethods are respected, but the returned -- table will have no metatable of its own. ------------------------------------------------------------------------------------ --]] function p.shallowClone(t) local ret = {} for k, v in pairs(t) do ret[k] = v end return ret end --[[ ------------------------------------------------------------------------------------ -- removeDuplicates -- -- This removes duplicate values from an array. Non-positive-integer keys are -- ignored. The earliest value is kept, and all subsequent duplicate values are -- removed, but otherwise the array order is unchanged. ------------------------------------------------------------------------------------ --]] function p.removeDuplicates(t) checkType('removeDuplicates', 1, t, 'table') local isNan = p.isNan local ret, exists = {}, {} for i, v in ipairs(t) do if isNan(v) then -- NaNs can't be table keys, and they are also unique, so we don't need to check existence. ret[#ret + 1] = v else if not exists[v] then ret[#ret + 1] = v exists[v] = true end end end return ret end --[[ ------------------------------------------------------------------------------------ -- numKeys -- -- This takes a table and returns an array containing the numbers of any numerical -- keys that have non-nil values, sorted in numerical order. ------------------------------------------------------------------------------------ --]] function p.numKeys(t) checkType('numKeys', 1, t, 'table') local isPositiveInteger = p.isPositiveInteger local nums = {} for k, v in pairs(t) do if isPositiveInteger(k) then nums[#nums + 1] = k end end table.sort(nums) return nums end --[[ ------------------------------------------------------------------------------------ -- affixNums -- -- This takes a table and returns an array containing the numbers of keys with the -- specified prefix and suffix. For example, for the table -- {a1 = 'foo', a3 = 'bar', a6 = 'baz'} and the prefix "a", affixNums will -- return {1, 3, 6}. ------------------------------------------------------------------------------------ --]] function p.affixNums(t, prefix, suffix) checkType('affixNums', 1, t, 'table') checkType('affixNums', 2, prefix, 'string', true) checkType('affixNums', 3, suffix, 'string', true) local function cleanPattern(s) -- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally. return s:gsub('([%(%)%%%.%[%]%*%+%-%?%^%$])', '%%%1') end prefix = prefix or '' suffix = suffix or '' prefix = cleanPattern(prefix) suffix = cleanPattern(suffix) local pattern = '^' .. prefix .. '([1-9]%d*)' .. suffix .. '$' local nums = {} for k, v in pairs(t) do if type(k) == 'string' then local num = mw.ustring.match(k, pattern) if num then nums[#nums + 1] = tonumber(num) end end end table.sort(nums) return nums end --[[ ------------------------------------------------------------------------------------ -- numData -- -- Given a table with keys like ("foo1", "bar1", "foo2", "baz2"), returns a table -- of subtables in the format -- { [1] = {foo = 'text', bar = 'text'}, [2] = {foo = 'text', baz = 'text'} } -- Keys that don't end with an integer are stored in a subtable named "other". -- The compress option compresses the table so that it can be iterated over with -- ipairs. ------------------------------------------------------------------------------------ --]] function p.numData(t, compress) checkType('numData', 1, t, 'table') checkType('numData', 2, compress, 'boolean', true) local ret = {} for k, v in pairs(t) do local prefix, num = mw.ustring.match(tostring(k), '^([^0-9]*)([1-9][0-9]*)$') if num then num = tonumber(num) local subtable = ret[num] or {} if prefix == '' then -- Positional parameters match the blank string; put them at the start of the subtable instead. prefix = 1 end subtable[prefix] = v ret[num] = subtable else local subtable = ret.other or {} subtable[k] = v ret.other = subtable end end if compress then local other = ret.other ret = p.compressSparseArray(ret) ret.other = other end return ret end --[[ ------------------------------------------------------------------------------------ -- compressSparseArray -- -- This takes an array with one or more nil values, and removes the nil values -- while preserving the order, so that the array can be safely traversed with -- ipairs. ------------------------------------------------------------------------------------ --]] function p.compressSparseArray(t) checkType('compressSparseArray', 1, t, 'table') local ret = {} local nums = p.numKeys(t) for _, num in ipairs(nums) do ret[#ret + 1] = t[num] end return ret end --[[ ------------------------------------------------------------------------------------ -- sparseIpairs -- -- This is an iterator for sparse arrays. It can be used like ipairs, but can -- handle nil values. ------------------------------------------------------------------------------------ --]] function p.sparseIpairs(t) checkType('sparseIpairs', 1, t, 'table') local nums = p.numKeys(t) local i = 0 local lim = #nums return function () i = i + 1 if i <= lim then local key = nums[i] return key, t[key] else return nil, nil end end end --[[ ------------------------------------------------------------------------------------ -- size -- -- This returns the size of a key/value pair table. It will also work on arrays, -- but for arrays it is more efficient to use the # operator. ------------------------------------------------------------------------------------ --]] function p.size(t) checkType('size', 1, t, 'table') local i = 0 for k in pairs(t) do i = i + 1 end return i end local function defaultKeySort(item1, item2) -- "number" < "string", so numbers will be sorted before strings. local type1, type2 = type(item1), type(item2) if type1 ~= type2 then return type1 < type2 else -- This will fail with table, boolean, function. return item1 < item2 end end --[[ Returns a list of the keys in a table, sorted using either a default comparison function or a custom keySort function. ]] function p.keysToList(t, keySort, checked) if not checked then checkType('keysToList', 1, t, 'table') checkTypeMulti('keysToList', 2, keySort, { 'function', 'boolean', 'nil' }) end local list = {} local index = 1 for key, value in pairs(t) do list[index] = key index = index + 1 end if keySort ~= false then keySort = type(keySort) == 'function' and keySort or defaultKeySort table.sort(list, keySort) end return list end --[[ Iterates through a table, with the keys sorted using the keysToList function. If there are only numerical keys, sparseIpairs is probably more efficient. ]] function p.sortedPairs(t, keySort) checkType('sortedPairs', 1, t, 'table') checkType('sortedPairs', 2, keySort, 'function', true) local list = p.keysToList(t, keySort, true) local i = 0 return function() i = i + 1 local key = list[i] if key ~= nil then return key, t[key] else return nil, nil end end end --[[ Returns true if all keys in the table are consecutive integers starting at 1. --]] function p.isArray(t) checkType("isArray", 1, t, "table") local i = 0 for k, v in pairs(t) do i = i + 1 if t[i] == nil then return false end end return true end -- { "a", "b", "c" } -> { a = 1, b = 2, c = 3 } function p.invert(array) checkType("invert", 1, array, "table") local map = {} for i, v in ipairs(array) do map[v] = i end return map end --[[ { "a", "b", "c" } -> { ["a"] = true, ["b"] = true, ["c"] = true } --]] function p.listToSet(t) checkType("listToSet", 1, t, "table") local set = {} for _, item in ipairs(t) do set[item] = true end return set end --[[ Recursive deep copy function. Preserves identities of subtables. ]] local function _deepCopy(orig, includeMetatable, already_seen) -- Stores copies of tables indexed by the original table. already_seen = already_seen or {} local copy = already_seen[orig] if copy ~= nil then return copy end if type(orig) == 'table' then copy = {} for orig_key, orig_value in pairs(orig) do copy[deepcopy(orig_key, includeMetatable, already_seen)] = deepcopy(orig_value, includeMetatable, already_seen) end already_seen[orig] = copy if includeMetatable then local mt = getmetatable(orig) if mt ~= nil then local mt_copy = deepcopy(mt, includeMetatable, already_seen) setmetatable(copy, mt_copy) already_seen[mt] = mt_copy end end else -- number, string, boolean, etc copy = orig end return copy end function p.deepCopy(orig, noMetatable, already_seen) checkType("deepCopy", 3, already_seen, "table", true) return _deepCopy(orig, not noMetatable, already_seen) end --[[ Concatenates all values in the table that are indexed by a number, in order. sparseConcat{ a, nil, c, d } => "acd" sparseConcat{ nil, b, c, d } => "bcd" ]] function p.sparseConcat(t, sep, i, j) local list = {} local list_i = 0 for _, v in p.sparseIpairs(t) do list_i = list_i + 1 list[list_i] = v end return table.concat(list, sep, i, j) end --[[ -- Finds the length of an array, or of a quasi-array with keys such -- as "data1", "data2", etc., using an exponential search algorithm. -- It is similar to the operator #, but may return -- a different value when there are gaps in the array portion of the table. -- Intended to be used on data loaded with mw.loadData. For other tables, use #. -- Note: #frame.args in frame object always be set to 0, regardless of -- the number of unnamed template parameters, so use this function for -- frame.args. --]] function p.length(t, prefix) -- requiring module inline so that [[Module:Exponential search]] -- which is only needed by this one function -- doesn't get millions of transclusions local expSearch = require("Module:Exponential search") checkType('length', 1, t, 'table') checkType('length', 2, prefix, 'string', true) return expSearch(function(i) local key if prefix then key = prefix .. tostring(i) else key = i end return t[key] ~= nil end) or 0 end function p.inArray(arr, valueToFind) checkType("inArray", 1, arr, "table") -- if valueToFind is nil, error? for _, v in ipairs(arr) do if v == valueToFind then return true end end return false end return p ad3062fee63cdfb979a1543abf96236cf7bf609d Module:Module rating 828 47 97 2020-10-29T19:42:19Z Infobox>Kaldari 0 all software has bugs wikitext text/x-wiki <includeonly>{{Module other|{{ombox | type = notice | image = {{#switch: {{{1|}}} | pre-alpha | prealpha | pa = [[File:Ambox warning blue construction.svg|40x40px|link=|alt=Pre-alpha]] | alpha | a = [[File:Alpha lowercase.svg|26x26px|link=|alt=Alpha]] | beta | b = [[File:Greek lc beta.svg|40x40px|link=|alt=Beta]] | release | r | general | g = [[File:Green check.svg|40x40px|link=|alt=Ready for use]] | protected | protect | p = [[File:{{#switch:{{#invoke:Effective protection level|edit|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{FULLBASEPAGENAME}}|{{FULLPAGENAME}}}}}}|autoconfirmed=Semi|extendedconfirmed=Extended|accountcreator|templateeditor=Template|#default=Full}}-protection-shackle.svg|40x40px|link=|alt=Protected]] | semiprotected | semiprotect | semi =[[File:Semi-protection-shackle.svg|40x40px|link=|alt=Semi-protected]] }} | style = | textstyle = | text = {{#switch: {{{1|}}} | pre-alpha | prealpha | pa = This module is rated as [[:Category:Modules in pre-alpha development|pre-alpha]]. It is unfinished, and may or may not be in active development. It should not be used from article namespace pages. Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules in pre-alpha development|{{PAGENAME}}]] }} }} | alpha | a = This module is rated as [[:Category:Modules in alpha|alpha]]. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules in alpha|{{PAGENAME}}]] }} }} | beta | b = This module is rated as [[:Category:Modules in beta|beta]], and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules in beta|{{PAGENAME}}]] }} }} | release | r | general | g = This module is rated as [[:Category:Modules for general use|ready for general use]]. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by [[Wikipedia:Template sandbox and test cases|sandbox testing]] rather than repeated trial-and-error editing.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules for general use|{{PAGENAME}}]] }} }} | protected | protect | p = This module is [[:Category:Modules subject to page protection|subject to page protection]]. It is a [[Wikipedia:High-risk templates|highly visible module]] in use by a very large number of pages, or is [[Wikipedia:Substitution|substituted]] very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[Wikipedia:Protection policy|protected]] from editing.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules subject to page protection|{{PAGENAME}}]] }} }} | semiprotected | semiprotect | semi = This module is [[:Category:Modules subject to page protection|subject to page protection]]. It is a [[Wikipedia:High-risk templates|highly visible module]] in use by a very large number of pages, or is [[Wikipedia:Substitution|substituted]] very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[WP:SEMI|semi-protected]] from editing.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules subject to page protection|{{PAGENAME}}]] }} }} | #default = {{error|Module rating is invalid or not specified.}} }} }}|{{error|Error: {{tl|Module rating}} must be placed in the Module namespace.}} [[Category:Pages with templates in the wrong namespace]]|demospace={{{demospace|<noinclude>module</noinclude>}}}}}</includeonly><noinclude> {{module rating|release|nocat=true|demospace=module}} {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go in Wikidata. --> </noinclude> fa09f5dfdee6e8f216e15aaabf83f4fc95a94ff6 Template:Documentation/styles.css 10 39 80 2020-11-19T20:21:58Z Infobox character>Izno 0 Changed protection level for "[[Module:Documentation/styles.css]]": actually match module ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) text text/plain /* {{pp|small=yes}} */ .documentation, .documentation-metadata { border: 1px solid #a2a9b1; background-color: #ecfcf4; clear: both; } .documentation { margin: 1em 0 0 0; padding: 1em; } .documentation-metadata { margin: 0.2em 0; /* same margin left-right as .documentation */ font-style: italic; padding: 0.4em 1em; /* same padding left-right as .documentation */ } .documentation-startbox { padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex; } .documentation-heading { font-weight: bold; font-size: 125%; } .documentation-clear { /* Don't want things to stick out where they shouldn't. */ clear: both; } .documentation-toolbar { font-style: normal; font-size: 85%; } ce0e629c92e3d825ab9fd927fe6cc37d9117b6cb Module:Documentation/styles.css 828 54 111 2020-11-19T20:21:58Z Infobox>Izno 0 Changed protection level for "[[Module:Documentation/styles.css]]": actually match module ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)) text text/plain /* {{pp|small=yes}} */ .documentation, .documentation-metadata { border: 1px solid #a2a9b1; background-color: #ecfcf4; clear: both; } .documentation { margin: 1em 0 0 0; padding: 1em; } .documentation-metadata { margin: 0.2em 0; /* same margin left-right as .documentation */ font-style: italic; padding: 0.4em 1em; /* same padding left-right as .documentation */ } .documentation-startbox { padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex; } .documentation-heading { font-weight: bold; font-size: 125%; } .documentation-clear { /* Don't want things to stick out where they shouldn't. */ clear: both; } .documentation-toolbar { font-style: normal; font-size: 85%; } ce0e629c92e3d825ab9fd927fe6cc37d9117b6cb Module:Documentation/config 828 53 109 2020-11-20T09:56:40Z Infobox>Andrybak 0 replace deprecated [[Help:Files|"Image:" with "File:"]] Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Sandbox.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] -- A category to add to all template sandboxes. cfg['sandbox-category'] = 'Template sandboxes' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'edit' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'history' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from $1.' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "Editors can experiment in this template's $1 and $2 pages." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'edit' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'create' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'mirror' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'edit' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'Please add categories to the $1 subpage.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/doc' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'Subpages of this $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'doc' -- cfg['file-docpage-preload'] -- Preload file for documentation page in the file namespace. cfg['file-docpage-preload'] = 'Template:Documentation/preload-filespace' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- Print version configuration ---------------------------------------------------------------------------------------------------- -- cfg['print-subpage'] -- The name of the template subpage used for print versions. cfg['print-subpage'] = 'Print' -- cfg['print-link-display'] -- The text to display when linking to the /Print subpage. cfg['print-link-display'] = '/Print' -- cfg['print-blurb'] -- Text to display if a /Print subpage exists. $1 is a link to the subpage with -- a display value of cfg['print-link-display']. cfg['print-blurb'] = 'A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at $1.' .. ' If you make a change to this template, please update the print version as well.' -- cfg['display-print-category'] -- Set to true to enable output of cfg['print-category'] if a /Print subpage exists. -- This should be a boolean value (either true or false). cfg['display-print-category'] = true -- cfg['print-category'] -- Category to output if cfg['display-print-category'] is set to true, and a /Print subpage exists. cfg['print-category'] = 'Templates with print versions' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg 936dcd942da0ad844cd212849cde5e2dc1e45c3d Template:Navbar/styles.css 10 40 82 2020-12-08T00:40:59Z Infobox character>Izno 0 navbar-mini is never a span, and span doesn't have all the stuff that needs resetting text text/plain /* {{pp|small=yes}} */ .navbar { display: inline; font-size: 88%; font-weight: normal; } .navbar-collapse { float: left; text-align: left; } .navbar-boxtext { word-spacing: 0; } .navbar ul { display: inline-block; white-space: nowrap; line-height: inherit; } .navbar-brackets::before { margin-right: -0.125em; content: '[ '; } .navbar-brackets::after { margin-left: -0.125em; content: ' ]'; } .navbar li { word-spacing: -0.125em; } .navbar-mini abbr { font-variant: small-caps; border-bottom: none; text-decoration: none; cursor: inherit; } .navbar-ct-full { font-size: 114%; margin: 0 7em; } .navbar-ct-mini { font-size: 114%; margin: 0 4em; } /* Navbar styling when nested in infobox and navbox Should consider having a separate TemplateStyles for those specific places using an infobox/navbox and a navbar, or possibly override from using template */ .infobox .navbar { font-size: 100%; } .navbox .navbar { display: block; font-size: 100%; } .navbox-title .navbar { /* @noflip */ float: left; /* @noflip */ text-align: left; /* @noflip */ margin-right: 0.5em; } f4cf6b1111f177ad6af0154b14f9c942400f3636 Template:Tl 10 35 72 2021-02-12T22:03:00Z Infobox character>Anthony Appleyard 0 Anthony Appleyard moved page [[Template:Tl]] to [[Template:Template link]]: [[Special:Permalink/1006428669|Requested]] by Buidhe at [[WP:RM/TR]]: RM closed as move wikitext text/x-wiki #REDIRECT [[Template:Template link]] {{Redirect category shell| {{R from move}} }} d6593bb3b4a866249f55d0f34b047a71fe1f1529 Module:Tl 828 50 103 2021-02-12T22:03:00Z Infobox>Anthony Appleyard 0 Anthony Appleyard moved page [[Template:Tl]] to [[Template:Template link]]: [[Special:Permalink/1006428669|Requested]] by Buidhe at [[WP:RM/TR]]: RM closed as move wikitext text/x-wiki #REDIRECT [[Template:Template link]] {{Redirect category shell| {{R from move}} }} d6593bb3b4a866249f55d0f34b047a71fe1f1529 Module:Documentation 828 52 107 2021-03-05T23:50:41Z Infobox>Matt Fitzpatrick 0 role=note for end box Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return mw.ustring.format('[[%s|%s]]', page, display) else return mw.ustring.format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return mw.ustring.format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return '<span class="' .. message('toolbar-class') .. '">(' .. table.concat(ret, ' &#124; ') .. ')</span>' end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- env.printTitle - the print version of the template, located at the /Print subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.printTitle() --[[ -- Title object for the /Print subpage. -- Messages: -- 'print-subpage' --> 'Print' --]] return env.templateTitle:subPageTitle(message('print-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.fullUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[Image:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '' local pagetype if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') else pagetype = message('sandbox-notice-pagetype-other') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(message('sandbox-category')) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'file-docpage-preload' --> 'Template:Documentation/preload-filespace' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end local data = {} data.title = title data.docTitle = docTitle -- View, display, edit, and purge links if /doc exists. data.viewLinkDisplay = message('view-link-display') data.editLinkDisplay = message('edit-link-display') data.historyLinkDisplay = message('history-link-display') data.purgeLinkDisplay = message('purge-link-display') -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 6 then -- File namespace preload = message('file-docpage-preload') elseif subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end data.preload = preload data.createLinkDisplay = message('create-link-display') return data end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local function escapeBrackets(s) -- Escapes square brackets with HTML entities. s = s:gsub('%[', '&#91;') -- Replace square brackets with HTML entities. s = s:gsub('%]', '&#93;') return s end local ret local docTitle = data.docTitle local title = data.title if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeUrlLink(docTitle:fullUrl{action = 'edit'}, data.editLinkDisplay) local historyLink = makeUrlLink(docTitle:fullUrl{action = 'history'}, data.historyLinkDisplay) local purgeLink = makeUrlLink(title:fullUrl{action = 'purge'}, data.purgeLinkDisplay) ret = '[%s] [%s] [%s] [%s]' ret = escapeBrackets(ret) ret = mw.ustring.format(ret, viewLink, editLink, historyLink, purgeLink) else local createLink = makeUrlLink(docTitle:fullUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) ret = '[%s]' ret = escapeBrackets(ret) ret = mw.ustring.format(ret, createLink) end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" local printBlurb = p.makePrintBlurb(args, env) -- Two-line blurb about print versions of templates. if printBlurb then text = text .. '<br />' .. printBlurb end end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end local ret if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editUrl = docTitle:fullUrl{action = 'edit'} local editDisplay = message('edit-link-display') local editLink = makeUrlLink(editUrl, editDisplay) local historyUrl = docTitle:fullUrl{action = 'history'} local historyDisplay = message('history-link-display') local historyLink = makeUrlLink(historyUrl, historyDisplay) ret = message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:fullUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) ret = message('create-module-doc-blurb', {createLink}) .. '<br />' end return ret end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditUrl = sandboxTitle:fullUrl{action = 'edit'} local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeUrlLink(sandboxEditUrl, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:fullUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:fullUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:fullUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:fullUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeUrlLink(testcasesEditUrl, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:fullUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end function p.makePrintBlurb(args, env) --[=[ -- Generates the blurb displayed when there is a print version of the template available. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'print-link-display' --> '/Print' -- 'print-blurb' --> 'A [[Help:Books/for experts#Improving the book layout|print version]]' -- .. ' of this template exists at $1.' -- .. ' If you make a change to this template, please update the print version as well.' -- 'display-print-category' --> true -- 'print-category' --> 'Templates with print versions' --]=] local printTitle = env.printTitle if not printTitle then return nil end local ret if printTitle.exists then local printLink = makeWikilink(printTitle.prefixedText, message('print-link-display')) ret = message('print-blurb', {printLink}) local displayPrintCategory = message('display-print-category', nil, 'boolean') if displayPrintCategory then ret = ret .. makeCategoryLink(message('print-category')) end end return ret end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText local ret = '' if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then ret = ret .. makeCategoryLink(message('strange-usage-category')) end return ret end return p e83fdbf15868a3649a3fca55a29da23416566f02 Module:Protection banner 828 64 133 2021-03-23T19:27:30Z Infobox>Pppery 0 Replace [[Module:Vandal-m]] per TfD; getting this over-two-year-old merge proposal finally completed Scribunto text/plain -- This module implements {{pp-meta}} and its daughter templates such as -- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}. -- Initialise necessary modules. require('Module:No globals') local makeFileLink = require('Module:File link')._main local effectiveProtectionLevel = require('Module:Effective protection level')._main local effectiveProtectionExpiry = require('Module:Effective protection expiry')._main local yesno = require('Module:Yesno') -- Lazily initialise modules and objects we don't always need. local getArgs, makeMessageBox, lang -- Set constants. local CONFIG_MODULE = 'Module:Protection banner/config' -------------------------------------------------------------------------------- -- Helper functions -------------------------------------------------------------------------------- local function makeCategoryLink(cat, sort) if cat then return string.format( '[[%s:%s|%s]]', mw.site.namespaces[14].name, cat, sort ) end end -- Validation function for the expiry and the protection date local function validateDate(dateString, dateType) if not lang then lang = mw.language.getContentLanguage() end local success, result = pcall(lang.formatDate, lang, 'U', dateString) if success then result = tonumber(result) if result then return result end end error(string.format( 'invalid %s: %s', dateType, tostring(dateString) ), 4) end local function makeFullUrl(page, query, display) return string.format( '[%s %s]', tostring(mw.uri.fullUrl(page, query)), display ) end -- Given a directed graph formatted as node -> table of direct successors, -- get a table of all nodes reachable from a given node (though always -- including the given node). local function getReachableNodes(graph, start) local toWalk, retval = {[start] = true}, {} while true do -- Can't use pairs() since we're adding and removing things as we're iterating local k = next(toWalk) -- This always gets the "first" key if k == nil then return retval end toWalk[k] = nil retval[k] = true for _,v in ipairs(graph[k]) do if not retval[v] then toWalk[v] = true end end end end -------------------------------------------------------------------------------- -- Protection class -------------------------------------------------------------------------------- local Protection = {} Protection.__index = Protection Protection.supportedActions = { edit = true, move = true, autoreview = true, upload = true } Protection.bannerConfigFields = { 'text', 'explanation', 'tooltip', 'alt', 'link', 'image' } function Protection.new(args, cfg, title) local obj = {} obj._cfg = cfg obj.title = title or mw.title.getCurrentTitle() -- Set action if not args.action then obj.action = 'edit' elseif Protection.supportedActions[args.action] then obj.action = args.action else error(string.format( 'invalid action: %s', tostring(args.action) ), 3) end -- Set level obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title) if not obj.level or (obj.action == 'move' and obj.level == 'autoconfirmed') then -- Users need to be autoconfirmed to move pages anyway, so treat -- semi-move-protected pages as unprotected. obj.level = '*' end -- Set expiry local effectiveExpiry = effectiveProtectionExpiry(obj.action, obj.title) if effectiveExpiry == 'infinity' then obj.expiry = 'indef' elseif effectiveExpiry ~= 'unknown' then obj.expiry = validateDate(effectiveExpiry, 'expiry date') end -- Set reason if args[1] then obj.reason = mw.ustring.lower(args[1]) if obj.reason:find('|') then error('reasons cannot contain the pipe character ("|")', 3) end end -- Set protection date if args.date then obj.protectionDate = validateDate(args.date, 'protection date') end -- Set banner config do obj.bannerConfig = {} local configTables = {} if cfg.banners[obj.action] then configTables[#configTables + 1] = cfg.banners[obj.action][obj.reason] end if cfg.defaultBanners[obj.action] then configTables[#configTables + 1] = cfg.defaultBanners[obj.action][obj.level] configTables[#configTables + 1] = cfg.defaultBanners[obj.action].default end configTables[#configTables + 1] = cfg.masterBanner for i, field in ipairs(Protection.bannerConfigFields) do for j, t in ipairs(configTables) do if t[field] then obj.bannerConfig[field] = t[field] break end end end end return setmetatable(obj, Protection) end function Protection:isUserScript() -- Whether the page is a user JavaScript or CSS page. local title = self.title return title.namespace == 2 and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) end function Protection:isProtected() return self.level ~= '*' end function Protection:shouldShowLock() -- Whether we should output a banner/padlock return self:isProtected() and not self:isUserScript() end -- Whether this page needs a protection category. Protection.shouldHaveProtectionCategory = Protection.shouldShowLock function Protection:isTemporary() return type(self.expiry) == 'number' end function Protection:makeProtectionCategory() if not self:shouldHaveProtectionCategory() then return '' end local cfg = self._cfg local title = self.title -- Get the expiry key fragment. local expiryFragment if self.expiry == 'indef' then expiryFragment = self.expiry elseif type(self.expiry) == 'number' then expiryFragment = 'temp' end -- Get the namespace key fragment. local namespaceFragment = cfg.categoryNamespaceKeys[title.namespace] if not namespaceFragment and title.namespace % 2 == 1 then namespaceFragment = 'talk' end -- Define the order that key fragments are tested in. This is done with an -- array of tables containing the value to be tested, along with its -- position in the cfg.protectionCategories table. local order = { {val = expiryFragment, keypos = 1}, {val = namespaceFragment, keypos = 2}, {val = self.reason, keypos = 3}, {val = self.level, keypos = 4}, {val = self.action, keypos = 5} } --[[ -- The old protection templates used an ad-hoc protection category system, -- with some templates prioritising namespaces in their categories, and -- others prioritising the protection reason. To emulate this in this module -- we use the config table cfg.reasonsWithNamespacePriority to set the -- reasons for which namespaces have priority over protection reason. -- If we are dealing with one of those reasons, move the namespace table to -- the end of the order table, i.e. give it highest priority. If not, the -- reason should have highest priority, so move that to the end of the table -- instead. --]] table.insert(order, table.remove(order, self.reason and cfg.reasonsWithNamespacePriority[self.reason] and 2 or 3)) --[[ -- Define the attempt order. Inactive subtables (subtables with nil "value" -- fields) are moved to the end, where they will later be given the key -- "all". This is to cut down on the number of table lookups in -- cfg.protectionCategories, which grows exponentially with the number of -- non-nil keys. We keep track of the number of active subtables with the -- noActive parameter. --]] local noActive, attemptOrder do local active, inactive = {}, {} for i, t in ipairs(order) do if t.val then active[#active + 1] = t else inactive[#inactive + 1] = t end end noActive = #active attemptOrder = active for i, t in ipairs(inactive) do attemptOrder[#attemptOrder + 1] = t end end --[[ -- Check increasingly generic key combinations until we find a match. If a -- specific category exists for the combination of key fragments we are -- given, that match will be found first. If not, we keep trying different -- key fragment combinations until we match using the key -- "all-all-all-all-all". -- -- To generate the keys, we index the key subtables using a binary matrix -- with indexes i and j. j is only calculated up to the number of active -- subtables. For example, if there were three active subtables, the matrix -- would look like this, with 0 corresponding to the key fragment "all", and -- 1 corresponding to other key fragments. -- -- j 1 2 3 -- i -- 1 1 1 1 -- 2 0 1 1 -- 3 1 0 1 -- 4 0 0 1 -- 5 1 1 0 -- 6 0 1 0 -- 7 1 0 0 -- 8 0 0 0 -- -- Values of j higher than the number of active subtables are set -- to the string "all". -- -- A key for cfg.protectionCategories is constructed for each value of i. -- The position of the value in the key is determined by the keypos field in -- each subtable. --]] local cats = cfg.protectionCategories for i = 1, 2^noActive do local key = {} for j, t in ipairs(attemptOrder) do if j > noActive then key[t.keypos] = 'all' else local quotient = i / 2 ^ (j - 1) quotient = math.ceil(quotient) if quotient % 2 == 1 then key[t.keypos] = t.val else key[t.keypos] = 'all' end end end key = table.concat(key, '|') local attempt = cats[key] if attempt then return makeCategoryLink(attempt, title.text) end end return '' end function Protection:isIncorrect() local expiry = self.expiry return not self:shouldHaveProtectionCategory() or type(expiry) == 'number' and expiry < os.time() end function Protection:isTemplateProtectedNonTemplate() local action, namespace = self.action, self.title.namespace return self.level == 'templateeditor' and ( (action ~= 'edit' and action ~= 'move') or (namespace ~= 10 and namespace ~= 828) ) end function Protection:makeCategoryLinks() local msg = self._cfg.msg local ret = {self:makeProtectionCategory()} if self:isIncorrect() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-incorrect'], self.title.text ) end if self:isTemplateProtectedNonTemplate() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-template'], self.title.text ) end return table.concat(ret) end -------------------------------------------------------------------------------- -- Blurb class -------------------------------------------------------------------------------- local Blurb = {} Blurb.__index = Blurb Blurb.bannerTextFields = { text = true, explanation = true, tooltip = true, alt = true, link = true } function Blurb.new(protectionObj, args, cfg) return setmetatable({ _cfg = cfg, _protectionObj = protectionObj, _args = args }, Blurb) end -- Private methods -- function Blurb:_formatDate(num) -- Formats a Unix timestamp into dd Month, YYYY format. lang = lang or mw.language.getContentLanguage() local success, date = pcall( lang.formatDate, lang, self._cfg.msg['expiry-date-format'] or 'j F Y', '@' .. tostring(num) ) if success then return date end end function Blurb:_getExpandedMessage(msgKey) return self:_substituteParameters(self._cfg.msg[msgKey]) end function Blurb:_substituteParameters(msg) if not self._params then local parameterFuncs = {} parameterFuncs.CURRENTVERSION = self._makeCurrentVersionParameter parameterFuncs.EDITREQUEST = self._makeEditRequestParameter parameterFuncs.EXPIRY = self._makeExpiryParameter parameterFuncs.EXPLANATIONBLURB = self._makeExplanationBlurbParameter parameterFuncs.IMAGELINK = self._makeImageLinkParameter parameterFuncs.INTROBLURB = self._makeIntroBlurbParameter parameterFuncs.INTROFRAGMENT = self._makeIntroFragmentParameter parameterFuncs.PAGETYPE = self._makePagetypeParameter parameterFuncs.PROTECTIONBLURB = self._makeProtectionBlurbParameter parameterFuncs.PROTECTIONDATE = self._makeProtectionDateParameter parameterFuncs.PROTECTIONLEVEL = self._makeProtectionLevelParameter parameterFuncs.PROTECTIONLOG = self._makeProtectionLogParameter parameterFuncs.TALKPAGE = self._makeTalkPageParameter parameterFuncs.TOOLTIPBLURB = self._makeTooltipBlurbParameter parameterFuncs.TOOLTIPFRAGMENT = self._makeTooltipFragmentParameter parameterFuncs.VANDAL = self._makeVandalTemplateParameter self._params = setmetatable({}, { __index = function (t, k) local param if parameterFuncs[k] then param = parameterFuncs[k](self) end param = param or '' t[k] = param return param end }) end msg = msg:gsub('${(%u+)}', self._params) return msg end function Blurb:_makeCurrentVersionParameter() -- A link to the page history or the move log, depending on the kind of -- protection. local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'move' then -- We need the move log link. return makeFullUrl( 'Special:Log', {type = 'move', page = pagename}, self:_getExpandedMessage('current-version-move-display') ) else -- We need the history link. return makeFullUrl( pagename, {action = 'history'}, self:_getExpandedMessage('current-version-edit-display') ) end end function Blurb:_makeEditRequestParameter() local mEditRequest = require('Module:Submit an edit request') local action = self._protectionObj.action local level = self._protectionObj.level -- Get the edit request type. local requestType if action == 'edit' then if level == 'autoconfirmed' then requestType = 'semi' elseif level == 'extendedconfirmed' then requestType = 'extended' elseif level == 'templateeditor' then requestType = 'template' end end requestType = requestType or 'full' -- Get the display value. local display = self:_getExpandedMessage('edit-request-display') return mEditRequest._link{type = requestType, display = display} end function Blurb:_makeExpiryParameter() local expiry = self._protectionObj.expiry if type(expiry) == 'number' then return self:_formatDate(expiry) else return expiry end end function Blurb:_makeExplanationBlurbParameter() -- Cover special cases first. if self._protectionObj.title.namespace == 8 then -- MediaWiki namespace return self:_getExpandedMessage('explanation-blurb-nounprotect') end -- Get explanation blurb table keys local action = self._protectionObj.action local level = self._protectionObj.level local talkKey = self._protectionObj.title.isTalkPage and 'talk' or 'subject' -- Find the message in the explanation blurb table and substitute any -- parameters. local explanations = self._cfg.explanationBlurbs local msg if explanations[action][level] and explanations[action][level][talkKey] then msg = explanations[action][level][talkKey] elseif explanations[action][level] and explanations[action][level].default then msg = explanations[action][level].default elseif explanations[action].default and explanations[action].default[talkKey] then msg = explanations[action].default[talkKey] elseif explanations[action].default and explanations[action].default.default then msg = explanations[action].default.default else error(string.format( 'could not find explanation blurb for action "%s", level "%s" and talk key "%s"', action, level, talkKey ), 8) end return self:_substituteParameters(msg) end function Blurb:_makeImageLinkParameter() local imageLinks = self._cfg.imageLinks local action = self._protectionObj.action local level = self._protectionObj.level local msg if imageLinks[action][level] then msg = imageLinks[action][level] elseif imageLinks[action].default then msg = imageLinks[action].default else msg = imageLinks.edit.default end return self:_substituteParameters(msg) end function Blurb:_makeIntroBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-blurb-expiry') else return self:_getExpandedMessage('intro-blurb-noexpiry') end end function Blurb:_makeIntroFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-fragment-expiry') else return self:_getExpandedMessage('intro-fragment-noexpiry') end end function Blurb:_makePagetypeParameter() local pagetypes = self._cfg.pagetypes return pagetypes[self._protectionObj.title.namespace] or pagetypes.default or error('no default pagetype defined', 8) end function Blurb:_makeProtectionBlurbParameter() local protectionBlurbs = self._cfg.protectionBlurbs local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionBlurbs[action][level] then msg = protectionBlurbs[action][level] elseif protectionBlurbs[action].default then msg = protectionBlurbs[action].default elseif protectionBlurbs.edit.default then msg = protectionBlurbs.edit.default else error('no protection blurb defined for protectionBlurbs.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionDateParameter() local protectionDate = self._protectionObj.protectionDate if type(protectionDate) == 'number' then return self:_formatDate(protectionDate) else return protectionDate end end function Blurb:_makeProtectionLevelParameter() local protectionLevels = self._cfg.protectionLevels local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionLevels[action][level] then msg = protectionLevels[action][level] elseif protectionLevels[action].default then msg = protectionLevels[action].default elseif protectionLevels.edit.default then msg = protectionLevels.edit.default else error('no protection level defined for protectionLevels.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionLogParameter() local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'autoreview' then -- We need the pending changes log. return makeFullUrl( 'Special:Log', {type = 'stable', page = pagename}, self:_getExpandedMessage('pc-log-display') ) else -- We need the protection log. return makeFullUrl( 'Special:Log', {type = 'protect', page = pagename}, self:_getExpandedMessage('protection-log-display') ) end end function Blurb:_makeTalkPageParameter() return string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[self._protectionObj.title.namespace].talk.name, self._protectionObj.title.text, self._args.section or 'top', self:_getExpandedMessage('talk-page-link-display') ) end function Blurb:_makeTooltipBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-blurb-expiry') else return self:_getExpandedMessage('tooltip-blurb-noexpiry') end end function Blurb:_makeTooltipFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-fragment-expiry') else return self:_getExpandedMessage('tooltip-fragment-noexpiry') end end function Blurb:_makeVandalTemplateParameter() return mw.getCurrentFrame():expandTemplate{ title="vandal-m", args={self._args.user or self._protectionObj.title.baseText} } end -- Public methods -- function Blurb:makeBannerText(key) -- Validate input. if not key or not Blurb.bannerTextFields[key] then error(string.format( '"%s" is not a valid banner config field', tostring(key) ), 2) end -- Generate the text. local msg = self._protectionObj.bannerConfig[key] if type(msg) == 'string' then return self:_substituteParameters(msg) elseif type(msg) == 'function' then msg = msg(self._protectionObj, self._args) if type(msg) ~= 'string' then error(string.format( 'bad output from banner config function with key "%s"' .. ' (expected string, got %s)', tostring(key), type(msg) ), 4) end return self:_substituteParameters(msg) end end -------------------------------------------------------------------------------- -- BannerTemplate class -------------------------------------------------------------------------------- local BannerTemplate = {} BannerTemplate.__index = BannerTemplate function BannerTemplate.new(protectionObj, cfg) local obj = {} obj._cfg = cfg -- Set the image filename. local imageFilename = protectionObj.bannerConfig.image if imageFilename then obj._imageFilename = imageFilename else -- If an image filename isn't specified explicitly in the banner config, -- generate it from the protection status and the namespace. local action = protectionObj.action local level = protectionObj.level local namespace = protectionObj.title.namespace local reason = protectionObj.reason -- Deal with special cases first. if ( namespace == 10 or namespace == 828 or reason and obj._cfg.indefImageReasons[reason] ) and action == 'edit' and level == 'sysop' and not protectionObj:isTemporary() then -- Fully protected modules and templates get the special red "indef" -- padlock. obj._imageFilename = obj._cfg.msg['image-filename-indef'] else -- Deal with regular protection types. local images = obj._cfg.images if images[action] then if images[action][level] then obj._imageFilename = images[action][level] elseif images[action].default then obj._imageFilename = images[action].default end end end end return setmetatable(obj, BannerTemplate) end function BannerTemplate:renderImage() local filename = self._imageFilename or self._cfg.msg['image-filename-default'] or 'Transparent.gif' return makeFileLink{ file = filename, size = (self.imageWidth or 20) .. 'px', alt = self._imageAlt, link = self._imageLink, caption = self.imageCaption } end -------------------------------------------------------------------------------- -- Banner class -------------------------------------------------------------------------------- local Banner = setmetatable({}, BannerTemplate) Banner.__index = Banner function Banner.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 40 obj.imageCaption = blurbObj:makeBannerText('alt') -- Large banners use the alt text for the tooltip. obj._reasonText = blurbObj:makeBannerText('text') obj._explanationText = blurbObj:makeBannerText('explanation') obj._page = protectionObj.title.prefixedText -- Only makes a difference in testing. return setmetatable(obj, Banner) end function Banner:__tostring() -- Renders the banner. makeMessageBox = makeMessageBox or require('Module:Message box').main local reasonText = self._reasonText or error('no reason text set', 2) local explanationText = self._explanationText local mbargs = { page = self._page, type = 'protection', image = self:renderImage(), text = string.format( "'''%s'''%s", reasonText, explanationText and '<br />' .. explanationText or '' ) } return makeMessageBox('mbox', mbargs) end -------------------------------------------------------------------------------- -- Padlock class -------------------------------------------------------------------------------- local Padlock = setmetatable({}, BannerTemplate) Padlock.__index = Padlock function Padlock.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 20 obj.imageCaption = blurbObj:makeBannerText('tooltip') obj._imageAlt = blurbObj:makeBannerText('alt') obj._imageLink = blurbObj:makeBannerText('link') obj._indicatorName = cfg.padlockIndicatorNames[protectionObj.action] or cfg.padlockIndicatorNames.default or 'pp-default' return setmetatable(obj, Padlock) end function Padlock:__tostring() local frame = mw.getCurrentFrame() -- The nowiki tag helps prevent whitespace at the top of articles. return frame:extensionTag{name = 'nowiki'} .. frame:extensionTag{ name = 'indicator', args = {name = self._indicatorName}, content = self:renderImage() } end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p = {} function p._exportClasses() -- This is used for testing purposes. return { Protection = Protection, Blurb = Blurb, BannerTemplate = BannerTemplate, Banner = Banner, Padlock = Padlock, } end function p._main(args, cfg, title) args = args or {} cfg = cfg or require(CONFIG_MODULE) local protectionObj = Protection.new(args, cfg, title) local ret = {} -- If a page's edit protection is equally or more restrictive than its -- protection from some other action, then don't bother displaying anything -- for the other action (except categories). if protectionObj.action == 'edit' or args.demolevel or not getReachableNodes( cfg.hierarchy, protectionObj.level )[effectiveProtectionLevel('edit', protectionObj.title)] then -- Initialise the blurb object local blurbObj = Blurb.new(protectionObj, args, cfg) -- Render the banner if protectionObj:shouldShowLock() then ret[#ret + 1] = tostring( (yesno(args.small) and Padlock or Banner) .new(protectionObj, blurbObj, cfg) ) end end -- Render the categories if yesno(args.category) ~= false then ret[#ret + 1] = protectionObj:makeCategoryLinks() end return table.concat(ret) end function p.main(frame, cfg) cfg = cfg or require(CONFIG_MODULE) -- Find default args, if any. local parent = frame.getParent and frame:getParent() local defaultArgs = parent and cfg.wrappers[parent:getTitle():gsub('/sandbox$', '')] -- Find user args, and use the parent frame if we are being called from a -- wrapper template. getArgs = getArgs or require('Module:Arguments').getArgs local userArgs = getArgs(frame, { parentOnly = defaultArgs, frameOnly = not defaultArgs }) -- Build the args table. User-specified args overwrite default args. local args = {} for k, v in pairs(defaultArgs or {}) do args[k] = v end for k, v in pairs(userArgs) do args[k] = v end return p._main(args, cfg) end return p 7bbb15eba52c066f6d5921829f2babbf616123a4 Template:Template link 10 32 66 2021-03-25T19:03:22Z Infobox character>Izno 0 [[Wikipedia:Templates for discussion/Log/2021 March 18#Template:Tlu]] closed as keep ([[WP:XFDC#4.0.11|XFDcloser]]) wikitext text/x-wiki &#123;&#123;[[Template:{{{1}}}|{{{1}}}]]&#125;&#125;<noinclude>{{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> eabbec62efe3044a98ebb3ce9e7d4d43c222351d Module:Template link 828 49 101 2021-03-25T19:03:22Z Infobox>Izno 0 [[Wikipedia:Templates for discussion/Log/2021 March 18#Template:Tlu]] closed as keep ([[WP:XFDC#4.0.11|XFDcloser]]) wikitext text/x-wiki &#123;&#123;[[Template:{{{1}}}|{{{1}}}]]&#125;&#125;<noinclude>{{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> eabbec62efe3044a98ebb3ce9e7d4d43c222351d Module:Infobox 828 41 85 2021-03-31T19:24:48Z Infobox>Izno 0 add using-infobox tstyles support Scribunto text/plain local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' local function fixChildBoxes(sval, tt) local function notempty( s ) return s and s:match( '%S' ) end if notempty(sval) then local marker = '<span class=special_infobox_marker>' local s = sval s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker) if s:match(marker) then s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '') s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1') s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1') s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1') end if s:match(marker) then local subcells = mw.text.split(s, marker) s = '' for k = 1, #subcells do if k == 1 then s = s .. subcells[k] .. '</' .. tt .. '></tr>' elseif k == #subcells then local rowstyle = ' style="display:none"' if notempty(subcells[k]) then rowstyle = '' end s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' .. subcells[k] elseif notempty(subcells[k]) then if (k % 2) == 0 then s = s .. subcells[k] else s = s .. '<tr><' .. tt .. ' colspan=2>\n' .. subcells[k] .. '</' .. tt .. '></tr>' end end end end -- the next two lines add a newline at the end of lists for the PHP parser -- [[Special:Diff/849054481]] -- remove when [[:phab:T191516]] is fixed or OBE s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1') s = mw.ustring.gsub(s, '^(%{%|)', '\n%1') return s else return sval end end -- Returns the union of the values of two tables, as a sequence. local function union(t1, t2) local vals = {} for k, v in pairs(t1) do vals[v] = true end for k, v in pairs(t2) do vals[v] = true end local ret = {} for k, v in pairs(vals) do table.insert(ret, k) end return ret end -- Returns a table containing the numbers of the arguments that exist -- for the specified prefix. For example, if the prefix was 'data', and -- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}. local function getArgNums(prefix) local nums = {} for k, v in pairs(args) do local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -- Adds a row to the infobox, with either a header cell -- or a label/data cell combination. local function addRow(rowArgs) if rowArgs.header and rowArgs.header ~= '_BLANK_' then root :tag('tr') :addClass(rowArgs.rowclass) :cssText(rowArgs.rowstyle) :tag('th') :attr('colspan', '2') :addClass('infobox-header') :addClass(rowArgs.class) :addClass(args.headerclass) -- @deprecated next; target .infobox-<name> .infobox-header :cssText(args.headerstyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.header, 'th')) if rowArgs.data then root:wikitext( '[[Category:Pages which use infobox templates with ignored data cells]]' ) end elseif rowArgs.data and rowArgs.data:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local row = root:tag('tr') row:addClass(rowArgs.rowclass) row:cssText(rowArgs.rowstyle) if rowArgs.label then row :tag('th') :attr('scope', 'row') :addClass('infobox-label') -- @deprecated next; target .infobox-<name> .infobox-label :cssText(args.labelstyle) :cssText(rowArgs.rowcellstyle) :wikitext(rowArgs.label) :done() end local dataCell = row:tag('td') dataCell :attr('colspan', not rowArgs.label and '2' or nil) :addClass(not rowArgs.label and 'infobox-full-data' or 'infobox-data') :addClass(rowArgs.class) -- @deprecated next; target .infobox-<name> .infobox(-full)-data :cssText(rowArgs.datastyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.data, 'td')) else table.insert(empty_row_categories, rowArgs.data or '') end end local function renderTitle() if not args.title then return end root :tag('caption') :addClass('infobox-title') :addClass(args.titleclass) -- @deprecated next; target .infobox-<name> .infobox-title :cssText(args.titlestyle) :wikitext(args.title) end local function renderAboveRow() if not args.above then return end root :tag('tr') :tag('th') :attr('colspan', '2') :addClass('infobox-above') :addClass(args.aboveclass) -- @deprecated next; target .infobox-<name> .infobox-above :cssText(args.abovestyle) :wikitext(fixChildBoxes(args.above,'th')) end local function renderBelowRow() if not args.below then return end root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-below') :addClass(args.belowclass) -- @deprecated next; target .infobox-<name> .infobox-below :cssText(args.belowstyle) :wikitext(fixChildBoxes(args.below,'td')) end local function addSubheaderRow(subheaderArgs) if subheaderArgs.data and subheaderArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then local row = root:tag('tr') row:addClass(subheaderArgs.rowclass) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-subheader') :addClass(subheaderArgs.class) :cssText(subheaderArgs.datastyle) :cssText(subheaderArgs.rowcellstyle) :wikitext(fixChildBoxes(subheaderArgs.data, 'td')) else table.insert(empty_row_categories, subheaderArgs.data or '') end end local function renderSubheaders() if args.subheader then args.subheader1 = args.subheader end if args.subheaderrowclass then args.subheaderrowclass1 = args.subheaderrowclass end local subheadernums = getArgNums('subheader') for k, num in ipairs(subheadernums) do addSubheaderRow({ data = args['subheader' .. tostring(num)], -- @deprecated next; target .infobox-<name> .infobox-subheader datastyle = args.subheaderstyle, rowcellstyle = args['subheaderstyle' .. tostring(num)], class = args.subheaderclass, rowclass = args['subheaderrowclass' .. tostring(num)] }) end end local function addImageRow(imageArgs) if imageArgs.data and imageArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then local row = root:tag('tr') row:addClass(imageArgs.rowclass) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-image') :addClass(imageArgs.class) :cssText(imageArgs.datastyle) :wikitext(fixChildBoxes(imageArgs.data, 'td')) else table.insert(empty_row_categories, imageArgs.data or '') end end local function renderImages() if args.image then args.image1 = args.image end if args.caption then args.caption1 = args.caption end local imagenums = getArgNums('image') for k, num in ipairs(imagenums) do local caption = args['caption' .. tostring(num)] local data = mw.html.create():wikitext(args['image' .. tostring(num)]) if caption then data :tag('div') :addClass('infobox-caption') -- @deprecated next; target .infobox-<name> .infobox-caption :cssText(args.captionstyle) :wikitext(caption) end addImageRow({ data = tostring(data), -- @deprecated next; target .infobox-<name> .infobox-image datastyle = args.imagestyle, class = args.imageclass, rowclass = args['imagerowclass' .. tostring(num)] }) end end -- When autoheaders are turned on, preprocesses the rows local function preprocessRows() if not args.autoheaders then return end local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) local lastheader for k, num in ipairs(rownums) do if args['header' .. tostring(num)] then if lastheader then args['header' .. tostring(lastheader)] = nil end lastheader = num elseif args['data' .. tostring(num)] and args['data' .. tostring(num)]:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local data = args['data' .. tostring(num)] if data:gsub(category_in_empty_row_pattern, ''):match('%S') then lastheader = nil end end end if lastheader then args['header' .. tostring(lastheader)] = nil end end -- Gets the union of the header and data argument numbers, -- and renders them all in order local function renderRows() local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) for k, num in ipairs(rownums) do addRow({ header = args['header' .. tostring(num)], label = args['label' .. tostring(num)], data = args['data' .. tostring(num)], datastyle = args.datastyle, class = args['class' .. tostring(num)], rowclass = args['rowclass' .. tostring(num)], -- @deprecated next; target .infobox-<name> rowclass rowstyle = args['rowstyle' .. tostring(num)], rowcellstyle = args['rowcellstyle' .. tostring(num)] }) end end local function renderNavBar() if not args.name then return end root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-navbar') :wikitext(require('Module:Navbar')._navbar{ args.name, mini = 1, }) end local function renderItalicTitle() local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title']) if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then root:wikitext(mw.getCurrentFrame():expandTemplate({title = 'italic title'})) end end -- Categories in otherwise empty rows are collected in empty_row_categories. -- This function adds them to the module output. It is not affected by -- args.decat because this module should not prevent module-external categories -- from rendering. local function renderEmptyRowCategories() for _, s in ipairs(empty_row_categories) do root:wikitext(s) end end -- Render tracking categories. args.decat == turns off tracking categories. local function renderTrackingCategories() if args.decat == 'yes' then return end if args.child == 'yes' then if args.title then root:wikitext( '[[Category:Pages which use embedded infobox templates with the title parameter]]' ) end elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then root:wikitext('[[Category:Articles which use infobox templates with no data rows]]') end end --[=[ Loads the templatestyles for the infobox. TODO: load base templatestyles here rather than in MediaWiki:Common.css We aren't doing it here yet because there are 4-5000 pages with 'raw' infobox tables. See [[Mediawiki_talk:Common.css/to_do#Infobox]] and/or come help :). When we do this we should clean up the inline CSS below too. Will have to do some bizarre conversion category like with sidebar. ]=] local function loadTemplateStyles() local frame = mw.getCurrentFrame() -- See function description -- local base_templatestyles = frame:extensionTag{ -- name = 'templatestyles', args = { src = cfg.i18n.templatestyles } -- } local templatestyles = '' if args['templatestyles'] then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['templatestyles'] } } end local child_templatestyles = '' if args['child templatestyles'] then child_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['child templatestyles'] } } end local grandchild_templatestyles = '' if args['grandchild templatestyles'] then grandchild_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['grandchild templatestyles'] } } end return table.concat({ -- base_templatestyles, -- see function description templatestyles, child_templatestyles, grandchild_templatestyles }) end -- Specify the overall layout of the infobox, with special settings if the -- infobox is used as a 'child' inside another infobox. local function _infobox() if args.child ~= 'yes' then root = mw.html.create('table') root :addClass(args.subbox == 'yes' and 'infobox-subbox' or 'infobox') :addClass(args.bodyclass) -- @deprecated next; target .infobox-<name> :cssText(args.bodystyle) renderTitle() renderAboveRow() else root = mw.html.create() root :wikitext(args.title) end renderSubheaders() renderImages() preprocessRows() renderRows() renderBelowRow() renderNavBar() renderItalicTitle() renderEmptyRowCategories() renderTrackingCategories() return loadTemplateStyles() .. tostring(root) end -- If the argument exists and isn't blank, add it to the argument table. -- Blank arguments are treated as nil to match the behaviour of ParserFunctions. local function preprocessSingleArg(argName) if origArgs[argName] and origArgs[argName] ~= '' then args[argName] = origArgs[argName] end end -- Assign the parameters with the given prefixes to the args table, in order, in -- batches of the step size specified. This is to prevent references etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix" string and a -- "depend" table. The function always parses parameters containing the "prefix" -- string, but only parses parameters in the "depend" table if the prefix -- parameter is present and non-blank. local function preprocessArgs(prefixTable, step) if type(prefixTable) ~= 'table' then error("Non-table value detected for the prefix table", 2) end if type(step) ~= 'number' then error("Invalid step value detected", 2) end -- Get arguments without a number suffix, and check for bad input. for i,v in ipairs(prefixTable) do if type(v) ~= 'table' or type(v.prefix) ~= "string" or (v.depend and type(v.depend) ~= 'table') then error('Invalid input detected to preprocessArgs prefix table', 2) end preprocessSingleArg(v.prefix) -- Only parse the depend parameter if the prefix parameter is present -- and not blank. if args[v.prefix] and v.depend then for j, dependValue in ipairs(v.depend) do if type(dependValue) ~= 'string' then error('Invalid "depend" parameter value detected in preprocessArgs') end preprocessSingleArg(dependValue) end end end -- Get arguments with number suffixes. local a = 1 -- Counter variable. local moreArgumentsExist = true while moreArgumentsExist == true do moreArgumentsExist = false for i = a, a + step - 1 do for j,v in ipairs(prefixTable) do local prefixArgName = v.prefix .. tostring(i) if origArgs[prefixArgName] then -- Do another loop if any arguments are found, even blank ones. moreArgumentsExist = true preprocessSingleArg(prefixArgName) end -- Process the depend table if the prefix argument is present -- and not blank, or we are processing "prefix1" and "prefix" is -- present and not blank, and if the depend table is present. if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then for j,dependValue in ipairs(v.depend) do local dependArgName = dependValue .. tostring(i) preprocessSingleArg(dependArgName) end end end end a = a + step end end -- Parse the data parameters in the same order that the old {{infobox}} did, so -- that references etc. will display in the expected places. Parameters that -- depend on another parameter are only processed if that parameter is present, -- to avoid phantom references appearing in article reference lists. local function parseDataParameters() preprocessSingleArg('autoheaders') preprocessSingleArg('child') preprocessSingleArg('bodyclass') preprocessSingleArg('subbox') preprocessSingleArg('bodystyle') preprocessSingleArg('title') preprocessSingleArg('titleclass') preprocessSingleArg('titlestyle') preprocessSingleArg('above') preprocessSingleArg('aboveclass') preprocessSingleArg('abovestyle') preprocessArgs({ {prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}} }, 10) preprocessSingleArg('subheaderstyle') preprocessSingleArg('subheaderclass') preprocessArgs({ {prefix = 'image', depend = {'caption', 'imagerowclass'}} }, 10) preprocessSingleArg('captionstyle') preprocessSingleArg('imagestyle') preprocessSingleArg('imageclass') preprocessArgs({ {prefix = 'header'}, {prefix = 'data', depend = {'label'}}, {prefix = 'rowclass'}, {prefix = 'rowstyle'}, {prefix = 'rowcellstyle'}, {prefix = 'class'} }, 50) preprocessSingleArg('headerclass') preprocessSingleArg('headerstyle') preprocessSingleArg('labelstyle') preprocessSingleArg('datastyle') preprocessSingleArg('below') preprocessSingleArg('belowclass') preprocessSingleArg('belowstyle') preprocessSingleArg('name') -- different behaviour for italics if blank or absent args['italic title'] = origArgs['italic title'] preprocessSingleArg('decat') preprocessSingleArg('templatestyles') preprocessSingleArg('child templatestyles') preprocessSingleArg('grandchild templatestyles') end -- If called via #invoke, use the args passed into the invoking template. -- Otherwise, for testing purposes, assume args are being passed directly in. function p.infobox(frame) if frame == mw.getCurrentFrame() then origArgs = frame:getParent().args else origArgs = frame end parseDataParameters() return _infobox() end -- For calling via #invoke within a template function p.infoboxTemplate(frame) origArgs = {} for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end parseDataParameters() return _infobox() end return p 78a5aca30653178a57174938c358e88ef9255cba Template:High-use 10 16 34 2021-04-07T16:19:05Z Infobox character>GKFX 0 Allow system= to be passed through wikitext text/x-wiki {{#invoke:High-use|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|system={{{system|}}}}}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --> </noinclude> dc5ea36aa88cf409e3280bf65dbfc2566faffe29 35 34 2021-06-24T03:43:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#invoke:High-use|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|system={{{system|}}}}}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --> </noinclude> dc5ea36aa88cf409e3280bf65dbfc2566faffe29 Module:High-use 828 44 91 2021-04-07T16:19:05Z Infobox>GKFX 0 Allow system= to be passed through wikitext text/x-wiki {{#invoke:High-use|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|system={{{system|}}}}}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --> </noinclude> dc5ea36aa88cf409e3280bf65dbfc2566faffe29 119 91 2021-05-28T18:05:29Z Infobox>GKFX 0 Tidy full stops Scribunto text/plain local p = {} -- _fetch looks at the "demo" argument. local _fetch = require('Module:Transclusion_count').fetch function p.num(frame, count) if count == nil then count = _fetch(frame) end -- Build output string local return_value = "" if count == nil then if frame.args[1] == "risk" then return_value = "a very large number of" else return_value = "many" end else -- Use 2 significant figures for smaller numbers and 3 for larger ones local sigfig = 2 if count >= 100000 then sigfig = 3 end -- Prepare to round to appropriate number of sigfigs local f = math.floor(math.log10(count)) - sigfig + 1 -- Round and insert "approximately" or "+" when appropriate if (frame.args[2] == "yes") or (mw.ustring.sub(frame.args[1],-1) == "+") then -- Round down return_value = string.format("%s+", mw.getContentLanguage():formatNum(math.floor( (count / 10^(f)) ) * (10^(f))) ) else -- Round to nearest return_value = string.format("approximately&#x20;%s", mw.getContentLanguage():formatNum(math.floor( (count / 10^(f)) + 0.5) * (10^(f))) ) end -- Insert percentage of pages if that is likely to be >= 1% if count and count > 250000 then local percent = math.floor( ( (count/frame:callParserFunction('NUMBEROFPAGES', 'R') ) * 100) + 0.5) if percent >= 1 then return_value = string.format("%s&#x20;pages, or roughly %s%% of all", return_value, percent) end end end return return_value end -- Actions if there is a large (greater than or equal to 100,000) transclusion count function p.risk(frame) local return_value = "" if frame.args[1] == "risk" then return_value = "risk" else local count = _fetch(frame) if count and count >= 100000 then return_value = "risk" end end return return_value end function p.text(frame, count) -- Only show the information about how this template gets updated if someone -- is actually editing the page and maybe trying to update the count. local bot_text = (frame:preprocess("{{REVISIONID}}") == "") and "\n\n----\n'''Preview message''': Transclusion count updated automatically ([[Template:High-use/doc#Technical details|see documentation]])." or '' if count == nil then count = _fetch(frame) end local title = mw.title.getCurrentTitle() if title.subpageText == "doc" or title.subpageText == "sandbox" then title = title.basePageTitle end local systemMessages = frame.args['system'] if frame.args['system'] == '' then systemMessages = nil end local templateCount = ('on [https://templatecount.toolforge.org/index.php?lang=en&namespace=%s&name=%s %s pages]'):format( mw.title.getCurrentTitle().namespace, mw.uri.encode(title.text), p.num(frame, count)) local used_on_text = "'''This " .. (mw.title.getCurrentTitle().namespace == 828 and "Lua module" or "template") .. ' is used '; if systemMessages then used_on_text = used_on_text .. systemMessages .. ((count and count > 2000) and (",''' and " .. templateCount) or ("'''")) else used_on_text = used_on_text .. templateCount .. "'''" end local sandbox_text = ("%s's [[%s/sandbox|/sandbox]] or [[%s/testcases|/testcases]] subpages, or in your own [[%s]]. "):format( (mw.title.getCurrentTitle().namespace == 828 and "module" or "template"), title.fullText, title.fullText, mw.title.getCurrentTitle().namespace == 828 and "Module:Sandbox|module sandbox" or "Wikipedia:User pages#SUB|user subpage" ) local infoArg = frame.args["info"] ~= "" and frame.args["info"] if (systemMessages or frame.args[1] == "risk" or (count and count >= 100000) ) then local info = systemMessages and '.<br/>Changes to it can cause immediate changes to the Wikipedia user interface.' or '.' if infoArg then info = info .. "<br />" .. infoArg end sandbox_text = info .. '<br /> To avoid major disruption' .. (count and count >= 100000 and ' and server load' or '') .. ', any changes should be tested in the ' .. sandbox_text .. 'The tested changes can be added to this page in a single edit. ' else sandbox_text = (infoArg and ('.<br />' .. infoArg .. ' C') or ' and c') .. 'hanges may be widely noticed. Test changes in the ' .. sandbox_text end local discussion_text = systemMessages and 'Please discuss changes ' or 'Consider discussing changes ' if frame.args["2"] and frame.args["2"] ~= "" and frame.args["2"] ~= "yes" then discussion_text = string.format("%sat [[%s]]", discussion_text, frame.args["2"]) else discussion_text = string.format("%son the [[%s|talk page]]", discussion_text, title.talkPageTitle.fullText ) end return used_on_text .. sandbox_text .. discussion_text .. " before implementing them." .. bot_text end function p.main(frame) local count = _fetch(frame) local image = "[[File:Ambox warning yellow.svg|40px|alt=Warning|link=]]" local type_param = "style" local epilogue = '' if frame.args['system'] and frame.args['system'] ~= '' then image = "[[File:Ambox important.svg|40px|alt=Warning|link=]]" type_param = "content" local nocat = frame:getParent().args['nocat'] or frame.args['nocat'] local categorise = (nocat == '' or not require('Module:Yesno')(nocat)) if categorise then epilogue = frame:preprocess('{{Sandbox other||{{#switch:{{#invoke:Effective protection level|{{#switch:{{NAMESPACE}}|File=upload|#default=edit}}|{{FULLPAGENAME}}}}|sysop|templateeditor|interfaceadmin=|#default=[[Category:Pages used in system messages needing protection]]}}}}') end elseif (frame.args[1] == "risk" or (count and count >= 100000)) then image = "[[File:Ambox warning orange.svg|40px|alt=Warning|link=]]" type_param = "content" end if frame.args["form"] == "editnotice" then return frame:expandTemplate{ title = 'editnotice', args = { ["image"] = image, ["text"] = p.text(frame, count), ["expiry"] = (frame.args["expiry"] or "") } } .. epilogue else return require('Module:Message box').main('ombox', { type = type_param, image = image, text = p.text(frame, count), expiry = (frame.args["expiry"] or "") }) .. epilogue end end return p ef3d06bf59d03ab676dc96da469a85b6eba6d916 Template:Collapse top 10 11 24 2021-04-28T05:38:30Z Infobox character>Salix alba 0 add template data to no-include section wikitext text/x-wiki <div style="margin-left:{{{indent|0}}}"><!-- NOTE: width renders incorrectly if added to main STYLE section --> {| <!-- Template:Collapse top --> class="mw-collapsible {{<includeonly>safesubst:</includeonly>#if:{{{expand|{{{collapse|}}}}}}||mw-collapsed}} {{{class|}}}" style="background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|Silver}}}; margin: 0.2em auto auto; width:{{<includeonly>safesubst:</includeonly>#if:{{{width|}}}|{{{width}}}|100%}}; clear: {{{clear|both}}}; padding: 1px;" |- ! style="background: {{{bg|#{{main other|F0F2F5|CCFFCC}}}}}; font-size:87%; padding:0.2em 0.3em; text-align:{{<includeonly>safesubst:</includeonly>#if:{{{left|}}}|left|{{<includeonly>safesubst:</includeonly>#if:{{{align|}}}|left|center}}}}; {{<includeonly>safesubst:</includeonly>#if:{{{fc|}}}|color: {{{fc}}};|}}" | <div style="display:inline;font-size:115%">{{{1|{{{title|{{{reason|{{{header|{{{heading|{{{result|Extended content}}}}}}}}}}}}}}}}}}</div> {{<includeonly>safesubst:</includeonly>#if:{{{warning|{{{2|}}}}}} |{{<includeonly>safesubst:</includeonly>!}}- {{<includeonly>safesubst:</includeonly>!}} style="text-align:center; font-style:italic;" {{<includeonly>safesubst:</includeonly>!}} {{{2|The following is a closed discussion. {{strongbad|Please do not modify it.}} }}} }} |- | style="border: solid {{{border2|1px Silver}}}; padding: {{{padding|0.6em}}}; background: {{{bg2|White}}};" {{<includeonly>safesubst:</includeonly>!}}<noinclude> {{lorem ipsum|3}} {{Collapse bottom}} {{Documentation}} {{Collapse top/TemplateData}} </noinclude> 079e574f8c5352889d488c09f6593436ab454d4f 25 24 2021-06-24T03:43:21Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <div style="margin-left:{{{indent|0}}}"><!-- NOTE: width renders incorrectly if added to main STYLE section --> {| <!-- Template:Collapse top --> class="mw-collapsible {{<includeonly>safesubst:</includeonly>#if:{{{expand|{{{collapse|}}}}}}||mw-collapsed}} {{{class|}}}" style="background: {{{bg1|transparent}}}; text-align: left; border: {{{border|1px}}} solid {{{b-color|Silver}}}; margin: 0.2em auto auto; width:{{<includeonly>safesubst:</includeonly>#if:{{{width|}}}|{{{width}}}|100%}}; clear: {{{clear|both}}}; padding: 1px;" |- ! style="background: {{{bg|#{{main other|F0F2F5|CCFFCC}}}}}; font-size:87%; padding:0.2em 0.3em; text-align:{{<includeonly>safesubst:</includeonly>#if:{{{left|}}}|left|{{<includeonly>safesubst:</includeonly>#if:{{{align|}}}|left|center}}}}; {{<includeonly>safesubst:</includeonly>#if:{{{fc|}}}|color: {{{fc}}};|}}" | <div style="display:inline;font-size:115%">{{{1|{{{title|{{{reason|{{{header|{{{heading|{{{result|Extended content}}}}}}}}}}}}}}}}}}</div> {{<includeonly>safesubst:</includeonly>#if:{{{warning|{{{2|}}}}}} |{{<includeonly>safesubst:</includeonly>!}}- {{<includeonly>safesubst:</includeonly>!}} style="text-align:center; font-style:italic;" {{<includeonly>safesubst:</includeonly>!}} {{{2|The following is a closed discussion. {{strongbad|Please do not modify it.}} }}} }} |- | style="border: solid {{{border2|1px Silver}}}; padding: {{{padding|0.6em}}}; background: {{{bg2|White}}};" {{<includeonly>safesubst:</includeonly>!}}<noinclude> {{lorem ipsum|3}} {{Collapse bottom}} {{Documentation}} {{Collapse top/TemplateData}} </noinclude> 079e574f8c5352889d488c09f6593436ab454d4f Module:Infobox/doc 828 58 121 2021-05-04T18:01:42Z Infobox>Shellwood 0 Reverted 1 edit by [[Special:Contributions/Magazinesangeeta|Magazinesangeeta]] ([[User talk:Magazinesangeeta|talk]]) wikitext text/x-wiki {{High-use|3308957|all-pages = yes}} {{module rating|protected}} {{Lua|Module:Navbar}} '''Module:Infobox''' is a [[WP:Module|module]] that implements the {{tl|Infobox}} template. Please see the template page for usage instructions. == Tracking categories == * {{clc|Pages which use infobox templates with ignored data cells}} * {{clc|Articles which use infobox templates with no data rows}} * {{clc|Pages which use embedded infobox templates with the title parameter}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| [[Category:Modules that add a tracking category]] [[Category:Wikipedia infoboxes]] [[Category:Infobox modules]] }}</includeonly> e4db5ad02b017e76b9a6b75b7ad40e3e727c3bf6 Template:Collapse bottom 10 10 22 2021-05-14T12:42:57Z Infobox character>Xaosflux 0 inc only wikitext text/x-wiki <includeonly>|}</div></includeonly><noinclude> {{Documentation|Template:Collapse top/doc}} <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> 64b210e8ab0882b262da50e9fbccf2132bc34fab 23 22 2021-06-24T03:43:21Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly>|}</div></includeonly><noinclude> {{Documentation|Template:Collapse top/doc}} <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> </noinclude> 64b210e8ab0882b262da50e9fbccf2132bc34fab Template:Infobox character/doc 10 19 40 2021-05-16T11:45:29Z Infobox character>Gonnym 0 resorting documentation to proper alignment wikitext text/x-wiki {{Documentation subpage}} {{High-use|7478}} {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters|Module:Formatted appearance}} '''Infobox character''' is used to create an infobox for a fictional character of any type. == Usage == The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page. {{Infobox character | name = {{{name}}} | series = {{{series}}} | image = {{{image}}} | alt = {{{alt}}} | caption = {{{caption}}} | first_major = {{{first_major}}} | first_minor = {{{first_minor}}} | first_date = {{{first_date}}} | last_major = {{{last_major}}} | last_minor = {{{last_minor}}} | last_date = {{{last_date}}} | creator = {{{creator}}} | based_on = {{{based_on}}} | adapted_by = {{{adapted_by}}} | designer = {{{designer}}} | portrayer = {{{portrayer}}} | voice = {{{voice}}} | motion_actor = {{{motion_actor}}} | full_name = {{{full_name}}} | nickname = {{{nickname}}} | alias = {{{alias}}} | species = {{{species}}} | gender = {{{gender}}} | title = {{{title}}} | occupation = {{{occupation}}} | affiliation = {{{affiliation}}} | fighting_style = {{{fighting_style}}} | weapon = {{{weapon}}} | family = {{{family}}} | spouse = {{{spouse}}} | significant_other = {{{significant_other}}} | children = {{{children}}} | relatives = {{{relatives}}} | religion = {{{religion}}} | origin = {{{origin}}} | nationality = {{{nationality}}} }} <syntaxhighlight lang="html" style="overflow:auto">{{Infobox character | color = <!-- headers background color; the foreground color is automatically computed --> | name = | series = <!-- or |franchise=; use without the italic on the outside --> | image = | alt = | caption = | first_major = <!-- per [[MOS:MAJORWORK]] - major works include TV series, films, books, albums and games --> | first_minor = <!-- or |first_issue=; Per [[MOS:MINORWORK]] - minor works include TV episodes, chapters, songs and game missions --> | first_date = | last_major = | last_minor = <!-- or |last_issue= --> | last_date = | creator = <!-- only the credited creators; use adapted_by= for adaptations --> | based_on = <!-- if not an original creation, use {{based on|character|author}} --> | adapted_by = <!-- for character adaption articles --> | designer = | portrayer = | voice = | motion_actor = | full_name = | nickname = <!-- or |nicknames= --> | alias = <!-- or |aliases= --> | species = <!-- or |race=; for non-humans only --> | gender = <!-- if not obvious --> | title = | occupation = <!-- or |position= or |class= --> | affiliation = <!-- or |alignment= --> | fighting_style = | weapon = | family = | spouse = <!-- or |spouses= --> | significant_other = <!-- or |significant_others= --> | children = | relatives = | religion = | origin = <!-- or |home= --> | nationality = }}</syntaxhighlight> == Parameters == All parameters are optional. Separate multiple entries using {{tl|Plainlist}}. {| class="wikitable" |- ! scope="col" | Parameter ! scope="col" | Notes |- ! scope="row" | color | Background color for header bars (default = #DEDEE2). The text color is automatically determined. Must meet AAA compliance standards outlines on [[WP:COLOR]]. |- ! scope="row" | name | Character name to display in top header (default = PAGENAME). |- ! scope="row" | series | Name of the series in which the character appears. |- ! scope="row" | franchise | Name of the fictional world or story in which the character appears. Does not italicize title. |- ! scope="row" | multiple | Set to yes if the infobox describes more than one character. |- ! scope="row" | image | Image of the character. "File:" and wikilinking is not required. i.e. use {{para|image|Example.png}}. |- ! scope="row" | image_upright | The image size defaults to frameless (220px). The size should not be set to a value that would result in an image width greater than 270px. |- ! scope="row" | alt | Alt text for image per [[WP:MOSALT]]. |- ! scope="row" | caption | A caption explaining the image. |- ! scope="row" | first_major | The title of the [[MOS:MAJORWORK|major work]] the fictional element first appeared in. Major works include TV series, films, books, albums and games. |- ! scope="row" | first_minor | The title of the [[MOS:MINORWORK|minor work]] the fictional element first appeared in. Minor works include TV episodes, chapters, songs and game missions. |- ! scope="row" | first_issue | The number of the comic book issue the fictional element first appeared in. |- ! scope="row" | first_date | The date of the publication/release of the minor work where the fictional element first appeared in. |- ! scope="row" | last_major | The title of the [[MOS:MAJORWORK|major work]] the fictional element last appeared in. Major works include TV series, films, books, albums and games. |- ! scope="row" | last_minor | The title of the [[MOS:MINORWORK|minor work]] the fictional element last appeared in. Minor works include TV episodes, chapters, songs and game missions. |- ! scope="row" | last_issue | The number of the comic book issue the fictional element last appeared in. |- ! scope="row" | last_date | The date of the publication/release of the minor work where the fictional element last appeared in. |- ! scope="row" | first | First appearance of the character. |- ! scope="row" | firstgame | First appearance in a game of the character. |- ! scope="row" | last | Last appearance of the character. |- ! scope="row" | creator | Name of the individuals who are credited with the creation of the character. |- ! scope="row" | based_on | Name of the original character the adaptation is based on. Use {{based on}} to add the title of original character and the names of the original creators. Use this field in conjunction with {{para|adapted_by}}. |- ! scope="row" | adapted_by | Name of the individuals who adapted the character into a new medium. Use this field if the character in a medium is based on a character from a different medium, such as a character on television based on a comic book character. |- ! scope="row" | designer | Name of the individuals who designed the character. |- ! scope="row" | portrayer | Name of the individuals who portrayed the character. |- ! scope="row" | voice | Name of the individuals who voiced the character. Should be omitted if the same as "portrayer". |- ! scope="row" | motion_actor | Name of the individuals who portrayed the character in motion capture. |- ! scope="row" | noinfo | Disable the first "In-universe information" header. |- ! scope="row" | info-hdr | Text for display in second header (default = Information). |- ! scope="row" | full_name | The character's full name. |- ! scope="row" | {{Unbulleted list|nickname|nicknames}} | Any nicknames used by the character. |- ! scope="row" | {{Unbulleted list|alias|aliases}} | Any aliases used by the character. |- ! scope="row" | {{Unbulleted list|species|race}} | The species or race of the character. Use for non-human characters only. |- ! scope="row" | gender | The gender of the character. Use only if not obvious. |- ! scope="row" | title | Titles the character was known by. |- ! scope="row" | {{Unbulleted list|occupation|position}} | The character's job or role. |- ! scope="row" | class | The [[character class]] for RPG characters. |- ! scope="row" | affiliation | The groups or teams the character belongs to. |- ! scope="row" | alignment | The character's Dungeons & Dragons alignment. |- ! scope="row" | fighting_style | The primary fighting styles used by the character. |- ! scope="row" | weapon | The types of weapons the character uses. |- ! scope="row" | family | The character's family members. |- ! scope="row" | {{Unbulleted list|spouse|spouses}} | The character's spouses. |- ! scope="row" | {{Unbulleted list|significant_other|significant_others}} | The character's significant others. |- ! scope="row" | children | The characters's children. |- ! scope="row" | relatives | The characters's relatives. |- ! scope="row" | religion | The character's religion. |- ! scope="row" | {{Unbulleted list|origin|home}} | The character's place of origin. |- ! scope="row" | nationality | The character's nationality. |- ! scope="row" | extra-hdr | Text for display in third header (default = No third header). |- ! scope="row" | lbl# | Label to display in left column where "#" is 1-5, 21-25, or 31-35 for custom fields under the 1st, 2nd, or 3rd headers respectively. |- ! scope="row" | data# | Text to display in the right column corresponding to the appropriate "lbl#". |} ===TemplateData=== {{Collapse top|title=TemplateData}} {{TemplateData header|noheader=1}} <templatedata> { "description": "Creates an infobox for a fictional character of any type.", "params": { "color": { "label": "Color", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Background color for header bars (default = #DEDEE2). The text color is automatically computed. Must meet AAA compliance standards outlines on [[WP:COLOR]].", "aliases": [ "colour" ] }, "name": { "label": "Name", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Character name to display in top header (default = PAGENAME)." }, "series": { "label": "Series", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the series in which the character appears." }, "franchise": { "label": "Franchise", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the fictional world or story in which the character appears. Does not italicize title." }, "multiple": { "label": "Multiple", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Set to yes if the infobox describes more than one character." }, "image": { "label": "Image", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Image of the character. \"File:\" and wikilinking is not required. i.e. use {{para|image|Example.png}}." }, "image_upright": { "label": "Image upright", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The image size defaults to frameless (220px). The size should not be set to a value that would result in an image width greater than 270px." }, "alt": { "label": "Alt", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Alt text for image per [[WP:MOSALT]]." }, "caption": { "label": "Caption", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "A caption explaining the image." }, "first_major": { "label": "First appearance major", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The title of the major work the fictional element first appeared in. Major works include TV series, films, books, albums and games." }, "first_minor": { "label": "First appearance minor", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The title of the minor work the fictional element first appeared in. Minor works include TV episodes, chapters, songs and game missions." }, "first_issue": { "label": "First appearance issue", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The number of the comic book issue the fictional element first appeared in." }, "first_date": { "label": "First appearance date", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The date of the publication/release of the minor work where the fictional element first appeared in." }, "last_major": { "label": "Last appearance major", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The title of the major work the fictional element last appeared in. Major works include TV series, films, books, albums and games." }, "last_minor": { "label": "Last appearance minor", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The title of the minor work the fictional element last appeared in. Minor works include TV episodes, chapters, songs and game missions." }, "last_issue": { "label": "Last appearance issue", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The number of the comic book issue the fictional element last appeared in." }, "last_date": { "label": "Last appearance date", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The date of the publication/release of the minor work where the fictional element last appeared in." }, "first": { "label": "First appearance", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "First appearance of the character." }, "firstgame": { "label": "First game", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "First appearance in a game of the character." }, "last": { "label": "Last appearance", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Last appearance of the character." }, "creator": { "label": "Creator", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who are credited with the creation of the character." }, "based_on": { "label": "Based on", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the original character the adaptation is based on. Use {{based on}} to add the title of original character and the names of the original creators. Use this field in conjunction with {{para|adapted_by}}." }, "adapted_by": { "label": "Adapted by", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who adapted the character into a new medium. Use this field if the character in a medium is based on a character from a different medium, such as a character on television based on a comic book character." }, "designer": { "label": "Designer", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who designed the character." }, "portrayer": { "label": "Portrayer", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who portrayed the character." }, "voice": { "label": "Voice actor", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who voiced the character (if different from portrayer or there is no portrayer)" }, "motion_actor": { "label": "Motion actor", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who portrayed the character in motion capture." }, "lbl1": { "label": "Label 1", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Label to display in left column for custom fields under the 1st header." }, "data1": { "label": "Data 1", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Text to display in the right column corresponding to lbl1." }, "lbl2": { "label": "Label 2", "inherits": "lbl1" }, "data2": { "label": "Data 2", "description": "Text to display in the right column corresponding to lbl2.", "inherits": "data1" }, "lbl3": { "label": "Label 3", "inherits": "lbl1" }, "data3": { "label": "Data 3", "description": "Text to display in the right column corresponding to lbl3.", "inherits": "data1" }, "lbl4": { "label": "Label 4", "inherits": "lbl1" }, "data4": { "label": "Data 4", "description": "Text to display in the right column corresponding to lbl4.", "inherits": "data1" }, "lbl5": { "label": "Label 5", "inherits": "lbl1" }, "data5": { "label": "Data 5", "description": "Text to display in the right column corresponding to lbl5.", "inherits": "data1" }, "noinfo": { "label": "Disable second header", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Disable the first \"In-universe information\" header." }, "info-hdr": { "label": "Second header text", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Text for display in second header (default = Information)." }, "full_name": { "label": "Full name", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's full name." }, "nickname": { "label": "Nickname", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "A nickname used by the character. If there is more than one nickname, use {{para|nicknames}} and separate multiple entries using {{tl|Plainlist}}." }, "nicknames": { "label": "Nicknames", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Any nicknames used by the character. If there is only one nickname, use {{para|nickname}}." }, "alias": { "label": "Alias", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "An alias used by the character. If there is more than one alias, use {{para|aliases}} and separate multiple entries using {{tl|Plainlist}}." }, "aliases": { "label": "Alias", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Any aliases used by the character. If there is only one alias, use {{para|alias}}." }, "species": { "label": "Species", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The species of the character. Use for non-human characters only." }, "race": { "label": "Race", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The race of the character. Use for non-human characters only." }, "gender": { "label": "Gender", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The gender of the character. Use only if not obvious." }, "title": { "label": "Title", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Titles the character was known by." }, "occupation": { "label": "Occupation", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's job or role." }, "position": { "label": "Position", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's job or role." }, "class": { "label": "Class", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character class for RPG characters." }, "affiliation": { "label": "Affiliation", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The groups or teams the character belongs to." }, "alignment": { "label": "Alignment", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's Dungeons & Dragons alignment." }, "fighting_style": { "label": "Fighting style", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The primary fighting styles used by the character." }, "weapon": { "label": "Weapon", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The types of weapons the character uses." }, "family": { "label": "Family", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's family members." }, "spouse": { "label": "Spouse", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's spouses." }, "spouses": { "label": "Spouses", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's spouses." }, "significant_other": { "label": "Significant other", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's significant others. If there is more than one significant_other, use {{para|significant_others}} and separate multiple entries using {{tl|Plainlist}}." }, "significant_others": { "label": "Significant others", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's significant others. If there is only one significant_other, use {{para|significant_other}}." }, "children": { "label": "Children", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The characters's children" }, "relatives": { "label": "Relatives", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The characters's relatives" }, "religion": { "label": "Religion", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's religion" }, "origin": { "label": "Origin", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's place of origin." }, "home": { "label": "Home", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's place of origin." }, "nationality": { "label": "Nationality", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's nationality." }, "lbl21": { "label": "Label 21", "description": "Label to display in left column for custom fields under the 2nd header.", "inherits": "lbl1" }, "data21": { "label": "Data 21", "description": "Text to display in the right column corresponding to lbl21.", "inherits": "data1" }, "lbl22": { "label": "Label 22", "inherits": "lbl21" }, "data22": { "label": "Data 22", "description": "Text to display in the right column corresponding to lbl22.", "inherits": "data1" }, "lbl23": { "label": "Label 23", "inherits": "lbl21" }, "data23": { "label": "Data 23", "description": "Text to display in the right column corresponding to lbl23.", "inherits": "data1" }, "lbl24": { "label": "Label 24", "inherits": "lbl21" }, "data24": { "label": "Data 24", "description": "Text to display in the right column corresponding to lbl24.", "inherits": "data1" }, "lbl25": { "label": "Label 25", "inherits": "lbl21" }, "data25": { "label": "Data 25", "description": "Text to display in the right column corresponding to lbl25.", "inherits": "data1" }, "extra-hdr": { "label": "Third header text", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Text for display in third header (default = No third header)." }, "lbl31": { "label": "Label 31", "description": "Label to display in left column for custom fields under the 3rd header.", "inherits": "lbl22" }, "data31": { "label": "Data 31", "description": "Text to display in the right column corresponding to lbl31.", "inherits": "data1" }, "lbl32": { "label": "Label 32", "inherits": "lbl31" }, "data32": { "label": "Data 32", "description": "Text to display in the right column corresponding to lbl32.", "inherits": "data1" }, "lbl33": { "label": "Label 33", "inherits": "lbl31" }, "data33": { "label": "Data 33", "description": "Text to display in the right column corresponding to lbl33.", "inherits": "data1" }, "lbl34": { "label": "Label 34", "inherits": "lbl31" }, "data34": { "label": "Data 34", "description": "Text to display in the right column corresponding to lbl34.", "inherits": "data1" }, "lbl35": { "label": "Label 35", "inherits": "lbl31" }, "data35": { "label": "Data 35", "description": "Text to display in the right column corresponding to lbl35.", "inherits": "data1" } }, "format": "block" } </templatedata> {{Collapse bottom}} === All parameters (not for general use) === {{Collapse top|title=Complete list of parameters}} {{Parameter names example|_template=| adapted_by | affiliation | alias | alt | based_on | caption | children | color | creator | data1 | data2 | data3 | data4 | data5 | data21 | data22 | data23 | data24 | data25 | data31 | data32 | data33 | data34 | data35 | designer | extra-hdr | family | fighting_style | first_date | first_major | first_minor | firstgame | franchise | full_name | gender | home | image | image_size | image_upright | info-hdr | last_date | last_major | last_minor | lbl1 | lbl2 | lbl3 | lbl4 | lbl5 | lbl21 | lbl22 | lbl23 | lbl24 | lbl25 | lbl31 | lbl32 | lbl33 | lbl34 | lbl35 | motion_actor | multiple | name | nationality | nickname | occupation | origin | portrayer | position | race | relatives | religion | series | significant_other | species | spouse | title | voice | weapon}} <pre>{{Infobox character | color = <!-- headers background colour; the foreground colour is automatically computed --> | name = | series = <!-- or |franchise=; use without the italic on the outside --> | multiple = | image = | image_upright = | alt = | caption = | first_major = <!-- per [[MOS:MAJORWORK]] - major works include TV series, films, books, albums and games --> | first_minor = <!-- or |first_issue=; Per [[MOS:MINORWORK]] - minor works include TV episodes, chapters, songs and game missions --> | first_date = | last_major = | last_minor = <!-- or |last_issue= --> | last_date = | first = | firstgame = | last = | creator = <!-- only the credited creators; use adapted_by= for adaptations --> | based_on = <!-- if not an original creation, use {{based on|character|author}} --> | adapted_by = <!-- for character adaption articles --> | designer = | portrayer = | voice = | motion_actor = | lbl1 = | data1 = | lbl2 = | data2 = | lbl3 = | data3 = | lbl4 = | data4 = | lbl5 = | data5 = | noinfo = | info-hdr = | full_name = | nickname = <!-- or |nicknames= --> | alias = <!-- or |aliases= --> | species = <!-- or |race=; for non-humans only --> | gender = <!-- if not obvious --> | title = | occupation = <!-- or |position= or |class= --> | affiliation = <!-- or |alignment= --> | fighting_style = | weapon = | family = | spouse = <!-- or |spouses= --> | significant_other = <!-- or |significant_others= --> | children = | relatives = | religion = | origin = <!-- or |home= --> | nationality = | lbl21 = | data21 = | lbl22 = | data22 = | lbl23 = | data23 = | lbl24 = | data24 = | lbl25 = | data25 = | extra-hdr = | lbl31 = | data31 = | lbl32 = | data32 = | lbl33 = | data33 = | lbl34 = | data34 = | lbl35 = | data35 = }}</pre> {{Collapse bottom}} == Example == {{Infobox character | name = John Doe | series = [[Criminal Minds]] | image = | caption = | first_major = Criminal Minds | first_minor = Pilot | first_date = 2005 | last_major = Criminal Minds | last_minor = Last One | last_date = 2018 | creator = [[Agnes Nixon]] | portrayer = [[Soupy Sales]] | nickname = Doeboy | alias = Jack Dew | gender = Male | title = Detective | occupation = Law enforcement | family = Doe | spouse = Jane Doe | significant_other = | children = John Doe, Jr. | relatives = {{Plainlist| * Phil Doe (father) * Nancy Doe (mother) }} | religion = [[Christianity|Christian]] | nationality = American }} <syntaxhighlight lang="moin"> {{Infobox character | name = John Doe | series = [[Criminal Minds]] | image = | caption = | first_major = Criminal Minds | first_minor = Pilot | first_date = 2005 | last_major = Criminal Minds | last_minor = Last One | last_date = 2018 | creator = [[Agnes Nixon]] | portrayer = [[Soupy Sales]] | nickname = Doeboy | alias = Jack Dew | gender = Male | title = Detective | occupation = Law enforcement | family = Doe | spouse = Jane Doe | significant_other = | children = John Doe, Jr. | relatives = {{Plainlist| * Phil Doe (father) * Nancy Doe (mother) }} | religion = [[Christianity|Christian]] | nationality = American }} </syntaxhighlight> == Tracking categories == * {{clc|Pages using infobox character with unknown parameters}} * {{clc|Articles using Infobox character with multiple unlabeled fields}} * {{clc|Articles using infoboxes for fictional elements with invalid color combination}} == Supporting templates == * {{tl|Greater color contrast ratio}} * {{tl|Ensure AAA contrast ratio}} == See also == * {{tl|Infobox person}} {{Film- and television-related infobox templates}} <includeonly>{{sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Fictional character infobox templates| ]] [[Category:Templates that add a tracking category]] }}</includeonly> ea493f2ef39d037af344866461fe2be153069dc0 41 40 2021-06-24T03:43:24Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{Documentation subpage}} {{High-use|7478}} {{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters|Module:Formatted appearance}} '''Infobox character''' is used to create an infobox for a fictional character of any type. == Usage == The blank form immediately below shows the most commonly used fields, and complete instructions are listed further down the page. {{Infobox character | name = {{{name}}} | series = {{{series}}} | image = {{{image}}} | alt = {{{alt}}} | caption = {{{caption}}} | first_major = {{{first_major}}} | first_minor = {{{first_minor}}} | first_date = {{{first_date}}} | last_major = {{{last_major}}} | last_minor = {{{last_minor}}} | last_date = {{{last_date}}} | creator = {{{creator}}} | based_on = {{{based_on}}} | adapted_by = {{{adapted_by}}} | designer = {{{designer}}} | portrayer = {{{portrayer}}} | voice = {{{voice}}} | motion_actor = {{{motion_actor}}} | full_name = {{{full_name}}} | nickname = {{{nickname}}} | alias = {{{alias}}} | species = {{{species}}} | gender = {{{gender}}} | title = {{{title}}} | occupation = {{{occupation}}} | affiliation = {{{affiliation}}} | fighting_style = {{{fighting_style}}} | weapon = {{{weapon}}} | family = {{{family}}} | spouse = {{{spouse}}} | significant_other = {{{significant_other}}} | children = {{{children}}} | relatives = {{{relatives}}} | religion = {{{religion}}} | origin = {{{origin}}} | nationality = {{{nationality}}} }} <syntaxhighlight lang="html" style="overflow:auto">{{Infobox character | color = <!-- headers background color; the foreground color is automatically computed --> | name = | series = <!-- or |franchise=; use without the italic on the outside --> | image = | alt = | caption = | first_major = <!-- per [[MOS:MAJORWORK]] - major works include TV series, films, books, albums and games --> | first_minor = <!-- or |first_issue=; Per [[MOS:MINORWORK]] - minor works include TV episodes, chapters, songs and game missions --> | first_date = | last_major = | last_minor = <!-- or |last_issue= --> | last_date = | creator = <!-- only the credited creators; use adapted_by= for adaptations --> | based_on = <!-- if not an original creation, use {{based on|character|author}} --> | adapted_by = <!-- for character adaption articles --> | designer = | portrayer = | voice = | motion_actor = | full_name = | nickname = <!-- or |nicknames= --> | alias = <!-- or |aliases= --> | species = <!-- or |race=; for non-humans only --> | gender = <!-- if not obvious --> | title = | occupation = <!-- or |position= or |class= --> | affiliation = <!-- or |alignment= --> | fighting_style = | weapon = | family = | spouse = <!-- or |spouses= --> | significant_other = <!-- or |significant_others= --> | children = | relatives = | religion = | origin = <!-- or |home= --> | nationality = }}</syntaxhighlight> == Parameters == All parameters are optional. Separate multiple entries using {{tl|Plainlist}}. {| class="wikitable" |- ! scope="col" | Parameter ! scope="col" | Notes |- ! scope="row" | color | Background color for header bars (default = #DEDEE2). The text color is automatically determined. Must meet AAA compliance standards outlines on [[WP:COLOR]]. |- ! scope="row" | name | Character name to display in top header (default = PAGENAME). |- ! scope="row" | series | Name of the series in which the character appears. |- ! scope="row" | franchise | Name of the fictional world or story in which the character appears. Does not italicize title. |- ! scope="row" | multiple | Set to yes if the infobox describes more than one character. |- ! scope="row" | image | Image of the character. "File:" and wikilinking is not required. i.e. use {{para|image|Example.png}}. |- ! scope="row" | image_upright | The image size defaults to frameless (220px). The size should not be set to a value that would result in an image width greater than 270px. |- ! scope="row" | alt | Alt text for image per [[WP:MOSALT]]. |- ! scope="row" | caption | A caption explaining the image. |- ! scope="row" | first_major | The title of the [[MOS:MAJORWORK|major work]] the fictional element first appeared in. Major works include TV series, films, books, albums and games. |- ! scope="row" | first_minor | The title of the [[MOS:MINORWORK|minor work]] the fictional element first appeared in. Minor works include TV episodes, chapters, songs and game missions. |- ! scope="row" | first_issue | The number of the comic book issue the fictional element first appeared in. |- ! scope="row" | first_date | The date of the publication/release of the minor work where the fictional element first appeared in. |- ! scope="row" | last_major | The title of the [[MOS:MAJORWORK|major work]] the fictional element last appeared in. Major works include TV series, films, books, albums and games. |- ! scope="row" | last_minor | The title of the [[MOS:MINORWORK|minor work]] the fictional element last appeared in. Minor works include TV episodes, chapters, songs and game missions. |- ! scope="row" | last_issue | The number of the comic book issue the fictional element last appeared in. |- ! scope="row" | last_date | The date of the publication/release of the minor work where the fictional element last appeared in. |- ! scope="row" | first | First appearance of the character. |- ! scope="row" | firstgame | First appearance in a game of the character. |- ! scope="row" | last | Last appearance of the character. |- ! scope="row" | creator | Name of the individuals who are credited with the creation of the character. |- ! scope="row" | based_on | Name of the original character the adaptation is based on. Use {{based on}} to add the title of original character and the names of the original creators. Use this field in conjunction with {{para|adapted_by}}. |- ! scope="row" | adapted_by | Name of the individuals who adapted the character into a new medium. Use this field if the character in a medium is based on a character from a different medium, such as a character on television based on a comic book character. |- ! scope="row" | designer | Name of the individuals who designed the character. |- ! scope="row" | portrayer | Name of the individuals who portrayed the character. |- ! scope="row" | voice | Name of the individuals who voiced the character. Should be omitted if the same as "portrayer". |- ! scope="row" | motion_actor | Name of the individuals who portrayed the character in motion capture. |- ! scope="row" | noinfo | Disable the first "In-universe information" header. |- ! scope="row" | info-hdr | Text for display in second header (default = Information). |- ! scope="row" | full_name | The character's full name. |- ! scope="row" | {{Unbulleted list|nickname|nicknames}} | Any nicknames used by the character. |- ! scope="row" | {{Unbulleted list|alias|aliases}} | Any aliases used by the character. |- ! scope="row" | {{Unbulleted list|species|race}} | The species or race of the character. Use for non-human characters only. |- ! scope="row" | gender | The gender of the character. Use only if not obvious. |- ! scope="row" | title | Titles the character was known by. |- ! scope="row" | {{Unbulleted list|occupation|position}} | The character's job or role. |- ! scope="row" | class | The [[character class]] for RPG characters. |- ! scope="row" | affiliation | The groups or teams the character belongs to. |- ! scope="row" | alignment | The character's Dungeons & Dragons alignment. |- ! scope="row" | fighting_style | The primary fighting styles used by the character. |- ! scope="row" | weapon | The types of weapons the character uses. |- ! scope="row" | family | The character's family members. |- ! scope="row" | {{Unbulleted list|spouse|spouses}} | The character's spouses. |- ! scope="row" | {{Unbulleted list|significant_other|significant_others}} | The character's significant others. |- ! scope="row" | children | The characters's children. |- ! scope="row" | relatives | The characters's relatives. |- ! scope="row" | religion | The character's religion. |- ! scope="row" | {{Unbulleted list|origin|home}} | The character's place of origin. |- ! scope="row" | nationality | The character's nationality. |- ! scope="row" | extra-hdr | Text for display in third header (default = No third header). |- ! scope="row" | lbl# | Label to display in left column where "#" is 1-5, 21-25, or 31-35 for custom fields under the 1st, 2nd, or 3rd headers respectively. |- ! scope="row" | data# | Text to display in the right column corresponding to the appropriate "lbl#". |} ===TemplateData=== {{Collapse top|title=TemplateData}} {{TemplateData header|noheader=1}} <templatedata> { "description": "Creates an infobox for a fictional character of any type.", "params": { "color": { "label": "Color", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Background color for header bars (default = #DEDEE2). The text color is automatically computed. Must meet AAA compliance standards outlines on [[WP:COLOR]].", "aliases": [ "colour" ] }, "name": { "label": "Name", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Character name to display in top header (default = PAGENAME)." }, "series": { "label": "Series", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the series in which the character appears." }, "franchise": { "label": "Franchise", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the fictional world or story in which the character appears. Does not italicize title." }, "multiple": { "label": "Multiple", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Set to yes if the infobox describes more than one character." }, "image": { "label": "Image", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Image of the character. \"File:\" and wikilinking is not required. i.e. use {{para|image|Example.png}}." }, "image_upright": { "label": "Image upright", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The image size defaults to frameless (220px). The size should not be set to a value that would result in an image width greater than 270px." }, "alt": { "label": "Alt", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Alt text for image per [[WP:MOSALT]]." }, "caption": { "label": "Caption", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "A caption explaining the image." }, "first_major": { "label": "First appearance major", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The title of the major work the fictional element first appeared in. Major works include TV series, films, books, albums and games." }, "first_minor": { "label": "First appearance minor", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The title of the minor work the fictional element first appeared in. Minor works include TV episodes, chapters, songs and game missions." }, "first_issue": { "label": "First appearance issue", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The number of the comic book issue the fictional element first appeared in." }, "first_date": { "label": "First appearance date", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The date of the publication/release of the minor work where the fictional element first appeared in." }, "last_major": { "label": "Last appearance major", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The title of the major work the fictional element last appeared in. Major works include TV series, films, books, albums and games." }, "last_minor": { "label": "Last appearance minor", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The title of the minor work the fictional element last appeared in. Minor works include TV episodes, chapters, songs and game missions." }, "last_issue": { "label": "Last appearance issue", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The number of the comic book issue the fictional element last appeared in." }, "last_date": { "label": "Last appearance date", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The date of the publication/release of the minor work where the fictional element last appeared in." }, "first": { "label": "First appearance", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "First appearance of the character." }, "firstgame": { "label": "First game", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "First appearance in a game of the character." }, "last": { "label": "Last appearance", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Last appearance of the character." }, "creator": { "label": "Creator", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who are credited with the creation of the character." }, "based_on": { "label": "Based on", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the original character the adaptation is based on. Use {{based on}} to add the title of original character and the names of the original creators. Use this field in conjunction with {{para|adapted_by}}." }, "adapted_by": { "label": "Adapted by", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who adapted the character into a new medium. Use this field if the character in a medium is based on a character from a different medium, such as a character on television based on a comic book character." }, "designer": { "label": "Designer", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who designed the character." }, "portrayer": { "label": "Portrayer", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who portrayed the character." }, "voice": { "label": "Voice actor", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who voiced the character (if different from portrayer or there is no portrayer)" }, "motion_actor": { "label": "Motion actor", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Name of the individuals who portrayed the character in motion capture." }, "lbl1": { "label": "Label 1", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Label to display in left column for custom fields under the 1st header." }, "data1": { "label": "Data 1", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Text to display in the right column corresponding to lbl1." }, "lbl2": { "label": "Label 2", "inherits": "lbl1" }, "data2": { "label": "Data 2", "description": "Text to display in the right column corresponding to lbl2.", "inherits": "data1" }, "lbl3": { "label": "Label 3", "inherits": "lbl1" }, "data3": { "label": "Data 3", "description": "Text to display in the right column corresponding to lbl3.", "inherits": "data1" }, "lbl4": { "label": "Label 4", "inherits": "lbl1" }, "data4": { "label": "Data 4", "description": "Text to display in the right column corresponding to lbl4.", "inherits": "data1" }, "lbl5": { "label": "Label 5", "inherits": "lbl1" }, "data5": { "label": "Data 5", "description": "Text to display in the right column corresponding to lbl5.", "inherits": "data1" }, "noinfo": { "label": "Disable second header", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Disable the first \"In-universe information\" header." }, "info-hdr": { "label": "Second header text", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Text for display in second header (default = Information)." }, "full_name": { "label": "Full name", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's full name." }, "nickname": { "label": "Nickname", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "A nickname used by the character. If there is more than one nickname, use {{para|nicknames}} and separate multiple entries using {{tl|Plainlist}}." }, "nicknames": { "label": "Nicknames", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Any nicknames used by the character. If there is only one nickname, use {{para|nickname}}." }, "alias": { "label": "Alias", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "An alias used by the character. If there is more than one alias, use {{para|aliases}} and separate multiple entries using {{tl|Plainlist}}." }, "aliases": { "label": "Alias", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Any aliases used by the character. If there is only one alias, use {{para|alias}}." }, "species": { "label": "Species", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The species of the character. Use for non-human characters only." }, "race": { "label": "Race", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The race of the character. Use for non-human characters only." }, "gender": { "label": "Gender", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The gender of the character. Use only if not obvious." }, "title": { "label": "Title", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Titles the character was known by." }, "occupation": { "label": "Occupation", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's job or role." }, "position": { "label": "Position", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's job or role." }, "class": { "label": "Class", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character class for RPG characters." }, "affiliation": { "label": "Affiliation", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The groups or teams the character belongs to." }, "alignment": { "label": "Alignment", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's Dungeons & Dragons alignment." }, "fighting_style": { "label": "Fighting style", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The primary fighting styles used by the character." }, "weapon": { "label": "Weapon", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The types of weapons the character uses." }, "family": { "label": "Family", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's family members." }, "spouse": { "label": "Spouse", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's spouses." }, "spouses": { "label": "Spouses", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's spouses." }, "significant_other": { "label": "Significant other", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's significant others. If there is more than one significant_other, use {{para|significant_others}} and separate multiple entries using {{tl|Plainlist}}." }, "significant_others": { "label": "Significant others", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's significant others. If there is only one significant_other, use {{para|significant_other}}." }, "children": { "label": "Children", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The characters's children" }, "relatives": { "label": "Relatives", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The characters's relatives" }, "religion": { "label": "Religion", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's religion" }, "origin": { "label": "Origin", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's place of origin." }, "home": { "label": "Home", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's place of origin." }, "nationality": { "label": "Nationality", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "The character's nationality." }, "lbl21": { "label": "Label 21", "description": "Label to display in left column for custom fields under the 2nd header.", "inherits": "lbl1" }, "data21": { "label": "Data 21", "description": "Text to display in the right column corresponding to lbl21.", "inherits": "data1" }, "lbl22": { "label": "Label 22", "inherits": "lbl21" }, "data22": { "label": "Data 22", "description": "Text to display in the right column corresponding to lbl22.", "inherits": "data1" }, "lbl23": { "label": "Label 23", "inherits": "lbl21" }, "data23": { "label": "Data 23", "description": "Text to display in the right column corresponding to lbl23.", "inherits": "data1" }, "lbl24": { "label": "Label 24", "inherits": "lbl21" }, "data24": { "label": "Data 24", "description": "Text to display in the right column corresponding to lbl24.", "inherits": "data1" }, "lbl25": { "label": "Label 25", "inherits": "lbl21" }, "data25": { "label": "Data 25", "description": "Text to display in the right column corresponding to lbl25.", "inherits": "data1" }, "extra-hdr": { "label": "Third header text", "type": "string", "required": false, "suggested": false, "deprecated": false, "description": "Text for display in third header (default = No third header)." }, "lbl31": { "label": "Label 31", "description": "Label to display in left column for custom fields under the 3rd header.", "inherits": "lbl22" }, "data31": { "label": "Data 31", "description": "Text to display in the right column corresponding to lbl31.", "inherits": "data1" }, "lbl32": { "label": "Label 32", "inherits": "lbl31" }, "data32": { "label": "Data 32", "description": "Text to display in the right column corresponding to lbl32.", "inherits": "data1" }, "lbl33": { "label": "Label 33", "inherits": "lbl31" }, "data33": { "label": "Data 33", "description": "Text to display in the right column corresponding to lbl33.", "inherits": "data1" }, "lbl34": { "label": "Label 34", "inherits": "lbl31" }, "data34": { "label": "Data 34", "description": "Text to display in the right column corresponding to lbl34.", "inherits": "data1" }, "lbl35": { "label": "Label 35", "inherits": "lbl31" }, "data35": { "label": "Data 35", "description": "Text to display in the right column corresponding to lbl35.", "inherits": "data1" } }, "format": "block" } </templatedata> {{Collapse bottom}} === All parameters (not for general use) === {{Collapse top|title=Complete list of parameters}} {{Parameter names example|_template=| adapted_by | affiliation | alias | alt | based_on | caption | children | color | creator | data1 | data2 | data3 | data4 | data5 | data21 | data22 | data23 | data24 | data25 | data31 | data32 | data33 | data34 | data35 | designer | extra-hdr | family | fighting_style | first_date | first_major | first_minor | firstgame | franchise | full_name | gender | home | image | image_size | image_upright | info-hdr | last_date | last_major | last_minor | lbl1 | lbl2 | lbl3 | lbl4 | lbl5 | lbl21 | lbl22 | lbl23 | lbl24 | lbl25 | lbl31 | lbl32 | lbl33 | lbl34 | lbl35 | motion_actor | multiple | name | nationality | nickname | occupation | origin | portrayer | position | race | relatives | religion | series | significant_other | species | spouse | title | voice | weapon}} <pre>{{Infobox character | color = <!-- headers background colour; the foreground colour is automatically computed --> | name = | series = <!-- or |franchise=; use without the italic on the outside --> | multiple = | image = | image_upright = | alt = | caption = | first_major = <!-- per [[MOS:MAJORWORK]] - major works include TV series, films, books, albums and games --> | first_minor = <!-- or |first_issue=; Per [[MOS:MINORWORK]] - minor works include TV episodes, chapters, songs and game missions --> | first_date = | last_major = | last_minor = <!-- or |last_issue= --> | last_date = | first = | firstgame = | last = | creator = <!-- only the credited creators; use adapted_by= for adaptations --> | based_on = <!-- if not an original creation, use {{based on|character|author}} --> | adapted_by = <!-- for character adaption articles --> | designer = | portrayer = | voice = | motion_actor = | lbl1 = | data1 = | lbl2 = | data2 = | lbl3 = | data3 = | lbl4 = | data4 = | lbl5 = | data5 = | noinfo = | info-hdr = | full_name = | nickname = <!-- or |nicknames= --> | alias = <!-- or |aliases= --> | species = <!-- or |race=; for non-humans only --> | gender = <!-- if not obvious --> | title = | occupation = <!-- or |position= or |class= --> | affiliation = <!-- or |alignment= --> | fighting_style = | weapon = | family = | spouse = <!-- or |spouses= --> | significant_other = <!-- or |significant_others= --> | children = | relatives = | religion = | origin = <!-- or |home= --> | nationality = | lbl21 = | data21 = | lbl22 = | data22 = | lbl23 = | data23 = | lbl24 = | data24 = | lbl25 = | data25 = | extra-hdr = | lbl31 = | data31 = | lbl32 = | data32 = | lbl33 = | data33 = | lbl34 = | data34 = | lbl35 = | data35 = }}</pre> {{Collapse bottom}} == Example == {{Infobox character | name = John Doe | series = [[Criminal Minds]] | image = | caption = | first_major = Criminal Minds | first_minor = Pilot | first_date = 2005 | last_major = Criminal Minds | last_minor = Last One | last_date = 2018 | creator = [[Agnes Nixon]] | portrayer = [[Soupy Sales]] | nickname = Doeboy | alias = Jack Dew | gender = Male | title = Detective | occupation = Law enforcement | family = Doe | spouse = Jane Doe | significant_other = | children = John Doe, Jr. | relatives = {{Plainlist| * Phil Doe (father) * Nancy Doe (mother) }} | religion = [[Christianity|Christian]] | nationality = American }} <syntaxhighlight lang="moin"> {{Infobox character | name = John Doe | series = [[Criminal Minds]] | image = | caption = | first_major = Criminal Minds | first_minor = Pilot | first_date = 2005 | last_major = Criminal Minds | last_minor = Last One | last_date = 2018 | creator = [[Agnes Nixon]] | portrayer = [[Soupy Sales]] | nickname = Doeboy | alias = Jack Dew | gender = Male | title = Detective | occupation = Law enforcement | family = Doe | spouse = Jane Doe | significant_other = | children = John Doe, Jr. | relatives = {{Plainlist| * Phil Doe (father) * Nancy Doe (mother) }} | religion = [[Christianity|Christian]] | nationality = American }} </syntaxhighlight> == Tracking categories == * {{clc|Pages using infobox character with unknown parameters}} * {{clc|Articles using Infobox character with multiple unlabeled fields}} * {{clc|Articles using infoboxes for fictional elements with invalid color combination}} == Supporting templates == * {{tl|Greater color contrast ratio}} * {{tl|Ensure AAA contrast ratio}} == See also == * {{tl|Infobox person}} {{Film- and television-related infobox templates}} <includeonly>{{sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Fictional character infobox templates| ]] [[Category:Templates that add a tracking category]] }}</includeonly> ea493f2ef39d037af344866461fe2be153069dc0 Template:Film- and television-related infobox templates 10 14 30 2021-05-27T19:36:52Z Infobox character>Gonnym 0 wikitext text/x-wiki {{Navbox | name = Film- and television-related infobox templates | title = Film- and television-related infobox templates | listclass = hlist | state = {{{state|autocollapse}}} | group1 = [[Wikipedia:List of infoboxes#Film|Film]] | list1 = * [[Template:Infobox film|Film]] ** [[Template:Infobox film/short description|/short description]] * [[Template:Infobox film or theatre festival|Film or theatre festival]] * [[Template:Infobox art movement|Art movement]] * [[Template:Infobox cinema market|Cinema market]] * [[Template:Infobox movie quote|Movie quote]] | group2 = [[Wikipedia:List of infoboxes#Television|Television]] | list2 = * [[Template:Infobox television|Television]] * [[Template:Infobox television season|Television season]] ** [[Template:Infobox reality competition season|Reality competition season]] * [[Template:Infobox television episode|Television episode]] ** [[Template:Infobox television episode/italic title|/italic title]] ** [[Template:Infobox television crossover episode|crossover]] *** [[Template:Infobox television crossover episode/part|/part]] ** ''[[Template:Infobox Doctor Who episode|Doctor Who]]'' ** ''[[Template:Infobox Futurama episode|Futurama]]'' ** ''[[Template:Infobox Simpsons episode|Simpsons]]'' * [[Template:Infobox animanga/Video|Animanga]] | group3 = Misc video | list3 = * ''[[Template:Infobox Paris by Night|Paris by Night]]'' * [[Template:Infobox machinima|Machinima]] | group4 = Industry | list4 = * [[Template:Infobox award|Award]] * [[Template:Infobox awards list|Awards list]] * [[Template:Infobox film awards|Film awards]] ** [[Template:Infobox film awards/link|/link]] ** [[Template:Infobox film awards/style|/style]] * [[Template:Infobox broadcasting network|Broadcasting network]] * [[Template:Infobox television channel|Television channel]] * [[Template:Infobox television station|Television station]] * [[Template:Infobox programming block|Programming block]] * [[Template:Infobox presenter|Presenter]] | group5 = [[Wikipedia:List of infoboxes#Photography|Technical]] | list5 = * [[Template:Infobox camera|Camera]] * [[Template:Infobox movie camera|Movie camera]] * [[Template:Infobox camera mount|Camera mount]] * [[Template:Infobox photographic lens|Photographic lens]] * [[Template:Infobox lens design|Lens design]] * [[Template:Infobox photographic film|Photographic film]] | group6 = [[Wikipedia:List of infoboxes#Fictional elements|Fiction]] | list6 = * [[Template:Infobox fictional artifact|Artifact]] * [[Template:Infobox character|Character]] ** [[Template:Infobox Doctor Who doctor|Doctor Who doctor]] ** [[Template:Infobox G.I. Joe character|''G.I. Joe'']] ** [[Template:Infobox Transformers character|Transformers]] ** [[Template:Infobox soap character|Soap opera]] * [[Template:Infobox fictional family|Family]] ** [[Template:Infobox fictional family/member|Family member]] * [[Template:Infobox fictional location|Location]] * [[Template:Infobox fictional organisation|Organisation]] * [[Template:Infobox fictional race|Race]] * [[Template:Infobox fictional vehicle|Vehicle]] | group7 = Template modules | list7 = * [[Template:Infobox name module|Name module]] * [[Template:Based on|Based on]] * [[Template:Infobox person|Person]] * [[Template:Listen|Listen]] | group8 = Related | list8 = * [[Template:Infobox advertising|Advertising]] * [[Template:Infobox media franchise|Media franchise]] * [[Template:Infobox audio drama|Audio drama]] * [[Template:Infobox podcast|Podcast]] * [[Template:Infobox radio station|Radio station]] * [[Template:Infobox radio show|Radio show]] }}<noinclude> {{Documentation}} </noinclude> 1f7689568b2dd40383ef85d5e84d10daa9110ecd 31 30 2021-06-24T03:43:22Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{Navbox | name = Film- and television-related infobox templates | title = Film- and television-related infobox templates | listclass = hlist | state = {{{state|autocollapse}}} | group1 = [[Wikipedia:List of infoboxes#Film|Film]] | list1 = * [[Template:Infobox film|Film]] ** [[Template:Infobox film/short description|/short description]] * [[Template:Infobox film or theatre festival|Film or theatre festival]] * [[Template:Infobox art movement|Art movement]] * [[Template:Infobox cinema market|Cinema market]] * [[Template:Infobox movie quote|Movie quote]] | group2 = [[Wikipedia:List of infoboxes#Television|Television]] | list2 = * [[Template:Infobox television|Television]] * [[Template:Infobox television season|Television season]] ** [[Template:Infobox reality competition season|Reality competition season]] * [[Template:Infobox television episode|Television episode]] ** [[Template:Infobox television episode/italic title|/italic title]] ** [[Template:Infobox television crossover episode|crossover]] *** [[Template:Infobox television crossover episode/part|/part]] ** ''[[Template:Infobox Doctor Who episode|Doctor Who]]'' ** ''[[Template:Infobox Futurama episode|Futurama]]'' ** ''[[Template:Infobox Simpsons episode|Simpsons]]'' * [[Template:Infobox animanga/Video|Animanga]] | group3 = Misc video | list3 = * ''[[Template:Infobox Paris by Night|Paris by Night]]'' * [[Template:Infobox machinima|Machinima]] | group4 = Industry | list4 = * [[Template:Infobox award|Award]] * [[Template:Infobox awards list|Awards list]] * [[Template:Infobox film awards|Film awards]] ** [[Template:Infobox film awards/link|/link]] ** [[Template:Infobox film awards/style|/style]] * [[Template:Infobox broadcasting network|Broadcasting network]] * [[Template:Infobox television channel|Television channel]] * [[Template:Infobox television station|Television station]] * [[Template:Infobox programming block|Programming block]] * [[Template:Infobox presenter|Presenter]] | group5 = [[Wikipedia:List of infoboxes#Photography|Technical]] | list5 = * [[Template:Infobox camera|Camera]] * [[Template:Infobox movie camera|Movie camera]] * [[Template:Infobox camera mount|Camera mount]] * [[Template:Infobox photographic lens|Photographic lens]] * [[Template:Infobox lens design|Lens design]] * [[Template:Infobox photographic film|Photographic film]] | group6 = [[Wikipedia:List of infoboxes#Fictional elements|Fiction]] | list6 = * [[Template:Infobox fictional artifact|Artifact]] * [[Template:Infobox character|Character]] ** [[Template:Infobox Doctor Who doctor|Doctor Who doctor]] ** [[Template:Infobox G.I. Joe character|''G.I. Joe'']] ** [[Template:Infobox Transformers character|Transformers]] ** [[Template:Infobox soap character|Soap opera]] * [[Template:Infobox fictional family|Family]] ** [[Template:Infobox fictional family/member|Family member]] * [[Template:Infobox fictional location|Location]] * [[Template:Infobox fictional organisation|Organisation]] * [[Template:Infobox fictional race|Race]] * [[Template:Infobox fictional vehicle|Vehicle]] | group7 = Template modules | list7 = * [[Template:Infobox name module|Name module]] * [[Template:Based on|Based on]] * [[Template:Infobox person|Person]] * [[Template:Listen|Listen]] | group8 = Related | list8 = * [[Template:Infobox advertising|Advertising]] * [[Template:Infobox media franchise|Media franchise]] * [[Template:Infobox audio drama|Audio drama]] * [[Template:Infobox podcast|Podcast]] * [[Template:Infobox radio station|Radio station]] * [[Template:Infobox radio show|Radio show]] }}<noinclude> {{Documentation}} </noinclude> 1f7689568b2dd40383ef85d5e84d10daa9110ecd Module:Message box 828 61 127 2021-06-06T18:51:34Z Infobox>Izno 0 per tper Scribunto text/plain -- This is a meta-module for producing message box templates, including -- {{mbox}}, {{ambox}}, {{imbox}}, {{tmbox}}, {{ombox}}, {{cmbox}} and {{fmbox}}. -- Load necessary modules. require('Module:No globals') local getArgs local yesno = require('Module:Yesno') -- Get a language object for formatDate and ucfirst. local lang = mw.language.getContentLanguage() -- Define constants local CONFIG_MODULE = 'Module:Message box/configuration' local DEMOSPACES = {talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'} -------------------------------------------------------------------------------- -- Helper functions -------------------------------------------------------------------------------- local function getTitleObject(...) -- Get the title object, passing the function through pcall -- in case we are over the expensive function count limit. local success, title = pcall(mw.title.new, ...) if success then return title end end local function union(t1, t2) -- Returns the union of two arrays. local vals = {} for i, v in ipairs(t1) do vals[v] = true end for i, v in ipairs(t2) do vals[v] = true end local ret = {} for k in pairs(vals) do table.insert(ret, k) end table.sort(ret) return ret end local function getArgNums(args, prefix) local nums = {} for k, v in pairs(args) do local num = mw.ustring.match(tostring(k), '^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -------------------------------------------------------------------------------- -- Box class definition -------------------------------------------------------------------------------- local MessageBox = {} MessageBox.__index = MessageBox function MessageBox.new(boxType, args, cfg) args = args or {} local obj = {} -- Set the title object and the namespace. obj.title = getTitleObject(args.page) or mw.title.getCurrentTitle() -- Set the config for our box type. obj.cfg = cfg[boxType] if not obj.cfg then local ns = obj.title.namespace -- boxType is "mbox" or invalid input if args.demospace and args.demospace ~= '' then -- implement demospace parameter of mbox local demospace = string.lower(args.demospace) if DEMOSPACES[demospace] then -- use template from DEMOSPACES obj.cfg = cfg[DEMOSPACES[demospace]] elseif string.find( demospace, 'talk' ) then -- demo as a talk page obj.cfg = cfg.tmbox else -- default to ombox obj.cfg = cfg.ombox end elseif ns == 0 then obj.cfg = cfg.ambox -- main namespace elseif ns == 6 then obj.cfg = cfg.imbox -- file namespace elseif ns == 14 then obj.cfg = cfg.cmbox -- category namespace else local nsTable = mw.site.namespaces[ns] if nsTable and nsTable.isTalk then obj.cfg = cfg.tmbox -- any talk namespace else obj.cfg = cfg.ombox -- other namespaces or invalid input end end end -- Set the arguments, and remove all blank arguments except for the ones -- listed in cfg.allowBlankParams. do local newArgs = {} for k, v in pairs(args) do if v ~= '' then newArgs[k] = v end end for i, param in ipairs(obj.cfg.allowBlankParams or {}) do newArgs[param] = args[param] end obj.args = newArgs end -- Define internal data structure. obj.categories = {} obj.classes = {} -- For lazy loading of [[Module:Category handler]]. obj.hasCategories = false return setmetatable(obj, MessageBox) end function MessageBox:addCat(ns, cat, sort) if not cat then return nil end if sort then cat = string.format('[[Category:%s|%s]]', cat, sort) else cat = string.format('[[Category:%s]]', cat) end self.hasCategories = true self.categories[ns] = self.categories[ns] or {} table.insert(self.categories[ns], cat) end function MessageBox:addClass(class) if not class then return nil end table.insert(self.classes, class) end function MessageBox:setParameters() local args = self.args local cfg = self.cfg -- Get type data. self.type = args.type local typeData = cfg.types[self.type] self.invalidTypeError = cfg.showInvalidTypeError and self.type and not typeData typeData = typeData or cfg.types[cfg.default] self.typeClass = typeData.class self.typeImage = typeData.image -- Find if the box has been wrongly substituted. self.isSubstituted = cfg.substCheck and args.subst == 'SUBST' -- Find whether we are using a small message box. self.isSmall = cfg.allowSmall and ( cfg.smallParam and args.small == cfg.smallParam or not cfg.smallParam and yesno(args.small) ) -- Add attributes, classes and styles. self.id = args.id self.name = args.name if self.name then self:addClass('box-' .. string.gsub(self.name,' ','_')) end if yesno(args.plainlinks) ~= false then self:addClass('plainlinks') end for _, class in ipairs(cfg.classes or {}) do self:addClass(class) end if self.isSmall then self:addClass(cfg.smallClass or 'mbox-small') end self:addClass(self.typeClass) self:addClass(args.class) self.style = args.style self.attrs = args.attrs -- Set text style. self.textstyle = args.textstyle -- Find if we are on the template page or not. This functionality is only -- used if useCollapsibleTextFields is set, or if both cfg.templateCategory -- and cfg.templateCategoryRequireName are set. self.useCollapsibleTextFields = cfg.useCollapsibleTextFields if self.useCollapsibleTextFields or cfg.templateCategory and cfg.templateCategoryRequireName then if self.name then local templateName = mw.ustring.match( self.name, '^[tT][eE][mM][pP][lL][aA][tT][eE][%s_]*:[%s_]*(.*)$' ) or self.name templateName = 'Template:' .. templateName self.templateTitle = getTitleObject(templateName) end self.isTemplatePage = self.templateTitle and mw.title.equals(self.title, self.templateTitle) end -- Process data for collapsible text fields. At the moment these are only -- used in {{ambox}}. if self.useCollapsibleTextFields then -- Get the self.issue value. if self.isSmall and args.smalltext then self.issue = args.smalltext else local sect if args.sect == '' then sect = 'This ' .. (cfg.sectionDefault or 'page') elseif type(args.sect) == 'string' then sect = 'This ' .. args.sect end local issue = args.issue issue = type(issue) == 'string' and issue ~= '' and issue or nil local text = args.text text = type(text) == 'string' and text or nil local issues = {} table.insert(issues, sect) table.insert(issues, issue) table.insert(issues, text) self.issue = table.concat(issues, ' ') end -- Get the self.talk value. local talk = args.talk -- Show talk links on the template page or template subpages if the talk -- parameter is blank. if talk == '' and self.templateTitle and ( mw.title.equals(self.templateTitle, self.title) or self.title:isSubpageOf(self.templateTitle) ) then talk = '#' elseif talk == '' then talk = nil end if talk then -- If the talk value is a talk page, make a link to that page. Else -- assume that it's a section heading, and make a link to the talk -- page of the current page with that section heading. local talkTitle = getTitleObject(talk) local talkArgIsTalkPage = true if not talkTitle or not talkTitle.isTalkPage then talkArgIsTalkPage = false talkTitle = getTitleObject( self.title.text, mw.site.namespaces[self.title.namespace].talk.id ) end if talkTitle and talkTitle.exists then local talkText if self.isSmall then local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. '#' .. talk) talkText = string.format('([[%s|talk]])', talkLink) else talkText = 'Relevant discussion may be found on' if talkArgIsTalkPage then talkText = string.format( '%s [[%s|%s]].', talkText, talk, talkTitle.prefixedText ) else talkText = string.format( '%s the [[%s#%s|talk page]].', talkText, talkTitle.prefixedText, talk ) end end self.talk = talkText end end -- Get other values. self.fix = args.fix ~= '' and args.fix or nil local date if args.date and args.date ~= '' then date = args.date elseif args.date == '' and self.isTemplatePage then date = lang:formatDate('F Y') end if date then self.date = string.format(" <span class='date-container'>''(<span class='date'>%s</span>)''</span>", date) end self.info = args.info if yesno(args.removalnotice) then self.removalNotice = cfg.removalNotice end end -- Set the non-collapsible text field. At the moment this is used by all box -- types other than ambox, and also by ambox when small=yes. if self.isSmall then self.text = args.smalltext or args.text else self.text = args.text end -- Set the below row. self.below = cfg.below and args.below -- General image settings. self.imageCellDiv = not self.isSmall and cfg.imageCellDiv self.imageEmptyCell = cfg.imageEmptyCell if cfg.imageEmptyCellStyle then self.imageEmptyCellStyle = 'border:none;padding:0;width:1px' end -- Left image settings. local imageLeft = self.isSmall and args.smallimage or args.image if cfg.imageCheckBlank and imageLeft ~= 'blank' and imageLeft ~= 'none' or not cfg.imageCheckBlank and imageLeft ~= 'none' then self.imageLeft = imageLeft if not imageLeft then local imageSize = self.isSmall and (cfg.imageSmallSize or '30x30px') or '40x40px' self.imageLeft = string.format('[[File:%s|%s|link=|alt=]]', self.typeImage or 'Imbox notice.png', imageSize) end end -- Right image settings. local imageRight = self.isSmall and args.smallimageright or args.imageright if not (cfg.imageRightNone and imageRight == 'none') then self.imageRight = imageRight end end function MessageBox:setMainspaceCategories() local args = self.args local cfg = self.cfg if not cfg.allowMainspaceCategories then return nil end local nums = {} for _, prefix in ipairs{'cat', 'category', 'all'} do args[prefix .. '1'] = args[prefix] nums = union(nums, getArgNums(args, prefix)) end -- The following is roughly equivalent to the old {{Ambox/category}}. local date = args.date date = type(date) == 'string' and date local preposition = 'from' for _, num in ipairs(nums) do local mainCat = args['cat' .. tostring(num)] or args['category' .. tostring(num)] local allCat = args['all' .. tostring(num)] mainCat = type(mainCat) == 'string' and mainCat allCat = type(allCat) == 'string' and allCat if mainCat and date and date ~= '' then local catTitle = string.format('%s %s %s', mainCat, preposition, date) self:addCat(0, catTitle) catTitle = getTitleObject('Category:' .. catTitle) if not catTitle or not catTitle.exists then self:addCat(0, 'Articles with invalid date parameter in template') end elseif mainCat and (not date or date == '') then self:addCat(0, mainCat) end if allCat then self:addCat(0, allCat) end end end function MessageBox:setTemplateCategories() local args = self.args local cfg = self.cfg -- Add template categories. if cfg.templateCategory then if cfg.templateCategoryRequireName then if self.isTemplatePage then self:addCat(10, cfg.templateCategory) end elseif not self.title.isSubpage then self:addCat(10, cfg.templateCategory) end end -- Add template error categories. if cfg.templateErrorCategory then local templateErrorCategory = cfg.templateErrorCategory local templateCat, templateSort if not self.name and not self.title.isSubpage then templateCat = templateErrorCategory elseif self.isTemplatePage then local paramsToCheck = cfg.templateErrorParamsToCheck or {} local count = 0 for i, param in ipairs(paramsToCheck) do if not args[param] then count = count + 1 end end if count > 0 then templateCat = templateErrorCategory templateSort = tostring(count) end if self.categoryNums and #self.categoryNums > 0 then templateCat = templateErrorCategory templateSort = 'C' end end self:addCat(10, templateCat, templateSort) end end function MessageBox:setAllNamespaceCategories() -- Set categories for all namespaces. if self.invalidTypeError then local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText self:addCat('all', 'Wikipedia message box parameter needs fixing', allSort) end if self.isSubstituted then self:addCat('all', 'Pages with incorrectly substituted templates') end end function MessageBox:setCategories() if self.title.namespace == 0 then self:setMainspaceCategories() elseif self.title.namespace == 10 then self:setTemplateCategories() end self:setAllNamespaceCategories() end function MessageBox:renderCategories() if not self.hasCategories then -- No categories added, no need to pass them to Category handler so, -- if it was invoked, it would return the empty string. -- So we shortcut and return the empty string. return "" end -- Convert category tables to strings and pass them through -- [[Module:Category handler]]. return require('Module:Category handler')._main{ main = table.concat(self.categories[0] or {}), template = table.concat(self.categories[10] or {}), all = table.concat(self.categories.all or {}), nocat = self.args.nocat, page = self.args.page } end function MessageBox:export() local root = mw.html.create() -- Add the subst check error. if self.isSubstituted and self.name then root:tag('b') :addClass('error') :wikitext(string.format( 'Template <code>%s[[Template:%s|%s]]%s</code> has been incorrectly substituted.', mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') )) end -- Create the box table. local boxTable = root:tag('table') boxTable:attr('id', self.id or nil) for i, class in ipairs(self.classes or {}) do boxTable:addClass(class or nil) end boxTable :cssText(self.style or nil) :attr('role', 'presentation') if self.attrs then boxTable:attr(self.attrs) end -- Add the left-hand image. local row = boxTable:tag('tr') if self.imageLeft then local imageLeftCell = row:tag('td'):addClass('mbox-image') if self.imageCellDiv then -- If we are using a div, redefine imageLeftCell so that the image -- is inside it. Divs use style="width: 52px;", which limits the -- image width to 52px. If any images in a div are wider than that, -- they may overlap with the text or cause other display problems. imageLeftCell = imageLeftCell:tag('div'):css('width', '52px') end imageLeftCell:wikitext(self.imageLeft or nil) elseif self.imageEmptyCell then -- Some message boxes define an empty cell if no image is specified, and -- some don't. The old template code in templates where empty cells are -- specified gives the following hint: "No image. Cell with some width -- or padding necessary for text cell to have 100% width." row:tag('td') :addClass('mbox-empty-cell') :cssText(self.imageEmptyCellStyle or nil) end -- Add the text. local textCell = row:tag('td'):addClass('mbox-text') if self.useCollapsibleTextFields then -- The message box uses advanced text parameters that allow things to be -- collapsible. At the moment, only ambox uses this. textCell:cssText(self.textstyle or nil) local textCellDiv = textCell:tag('div') textCellDiv :addClass('mbox-text-span') :wikitext(self.issue or nil) if (self.talk or self.fix) then textCellDiv:tag('span') :addClass('hide-when-compact') :wikitext(self.talk and (' ' .. self.talk) or nil) :wikitext(self.fix and (' ' .. self.fix) or nil) end textCellDiv:wikitext(self.date and (' ' .. self.date) or nil) if self.info and not self.isSmall then textCellDiv :tag('span') :addClass('hide-when-compact') :wikitext(self.info and (' ' .. self.info) or nil) end if self.removalNotice then textCellDiv:tag('span') :addClass('hide-when-compact') :tag('i') :wikitext(string.format(" (%s)", self.removalNotice)) end else -- Default text formatting - anything goes. textCell :cssText(self.textstyle or nil) :wikitext(self.text or nil) end -- Add the right-hand image. if self.imageRight then local imageRightCell = row:tag('td'):addClass('mbox-imageright') if self.imageCellDiv then -- If we are using a div, redefine imageRightCell so that the image -- is inside it. imageRightCell = imageRightCell:tag('div'):css('width', '52px') end imageRightCell :wikitext(self.imageRight or nil) end -- Add the below row. if self.below then boxTable:tag('tr') :tag('td') :attr('colspan', self.imageRight and '3' or '2') :addClass('mbox-text') :cssText(self.textstyle or nil) :wikitext(self.below or nil) end -- Add error message for invalid type parameters. if self.invalidTypeError then root:tag('div') :css('text-align', 'center') :wikitext(string.format( 'This message box is using an invalid "type=%s" parameter and needs fixing.', self.type or '' )) end -- Add categories. root:wikitext(self:renderCategories() or nil) return tostring(root) end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p, mt = {}, {} function p._exportClasses() -- For testing. return { MessageBox = MessageBox } end function p.main(boxType, args, cfgTables) local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE)) box:setParameters() box:setCategories() return box:export() end function mt.__index(t, k) return function (frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end return t.main(k, getArgs(frame, {trim = false, removeBlanks = false})) end end return setmetatable(p, mt) b1fd4c365d29a34bbcf3aef2adec6701ed0efe45 Template:Category link with count 10 8 18 2021-06-11T18:13:44Z Infobox character>GKFX 0 Support wider range of (valid) input format wikitext text/x-wiki [[:Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|<!-- -->{{#if:{{{name|}}}|{{{name}}}|Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}}}<!-- -->]]&nbsp;({{PAGESINCATEGORY:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|{{{2|all}}}}})<noinclude> {{Documentation}} </noinclude> f93f1540b8c157703bd6d24ae35c35bef745981d 19 18 2021-06-24T03:43:20Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki [[:Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|<!-- -->{{#if:{{{name|}}}|{{{name}}}|Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}}}<!-- -->]]&nbsp;({{PAGESINCATEGORY:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|{{{2|all}}}}})<noinclude> {{Documentation}} </noinclude> f93f1540b8c157703bd6d24ae35c35bef745981d Module:Category link with count 828 42 87 2021-06-11T18:13:44Z Infobox>GKFX 0 Support wider range of (valid) input format wikitext text/x-wiki [[:Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|<!-- -->{{#if:{{{name|}}}|{{{name}}}|Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}}}<!-- -->]]&nbsp;({{PAGESINCATEGORY:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|{{{2|all}}}}})<noinclude> {{Documentation}} </noinclude> f93f1540b8c157703bd6d24ae35c35bef745981d Module:Transclusion count/data/I 828 69 143 2021-06-20T05:15:33Z Infobox>Ahechtbot 0 [[Wikipedia:BOT|Bot]]: Updated page. Scribunto text/plain return { ["IAAF_name"] = 2300, ["IAST"] = 5600, ["IBDB_name"] = 8600, ["ICD10"] = 4600, ["ICD9"] = 4400, ["ICS"] = 2200, ["IDN"] = 3000, ["IMDB_name"] = 2600, ["IMDB_title"] = 3400, ["IMDb_episode"] = 8200, ["IMDb_name"] = 142000, ["IMDb_title"] = 175000, ["IMO_Number"] = 3800, ["IMSLP"] = 7500, ["IMSLP2"] = 2000, ["IND"] = 7200, ["INR"] = 5300, ["INRConvert"] = 4800, ["INRConvert/CurrentRate"] = 4900, ["INRConvert/USD"] = 4800, ["INRConvert/out"] = 4900, ["IOC_profile"] = 7700, ["IP"] = 2300, ["IPA"] = 104000, ["IPA-all"] = 2600, ["IPA-de"] = 6400, ["IPA-es"] = 7400, ["IPA-fr"] = 17000, ["IPA-it"] = 5400, ["IPA-nl"] = 2900, ["IPA-pl"] = 3000, ["IPA-pt"] = 3400, ["IPA-ru"] = 2400, ["IPA-sh"] = 2900, ["IPA-sl"] = 6700, ["IPA-th"] = 2500, ["IPA_audio_link"] = 11000, ["IPAc-cmn"] = 2400, ["IPAc-en"] = 42000, ["IPAc-pl"] = 52000, ["IPC_athlete"] = 2300, ["IPSummary"] = 75000, ["IP_summary"] = 75000, ["IPsock"] = 31000, ["IPtalk"] = 26000, ["IPuser"] = 6700, ["IPvandal"] = 13000, ["IRC"] = 10000, ["IRL"] = 5100, ["IRN"] = 3300, ["ISBN"] = 452000, ["ISBNT"] = 35000, ["ISO_15924/script-example-character"] = 2500, ["ISO_15924/wp-article"] = 2500, ["ISO_15924/wp-article/format"] = 2500, ["ISO_15924/wp-article/label"] = 2500, ["ISO_3166_code"] = 213000, ["ISO_3166_name"] = 16000, ["ISO_639_name"] = 5700, ["ISP"] = 21000, ["ISP_test"] = 5600, ["ISR"] = 4200, ["ISSN"] = 11000, ["ISSN_link"] = 28000, ["ISTAT"] = 8100, ["ISU_figure_skater"] = 2300, ["ITA"] = 16000, ["ITF"] = 5200, ["ITF_profile"] = 7300, ["ITIS"] = 4100, ["ITN_talk"] = 7700, ["ITN_talk/date"] = 7700, ["IUCN_banner"] = 14000, ["I_sup"] = 4000, ["Iaaf_name"] = 7800, ["Ice_hockey"] = 20000, ["Ice_hockey_stats"] = 14000, ["Icehockeystats"] = 10000, ["Icon"] = 508000, ["If"] = 131000, ["If_all"] = 58000, ["If_between"] = 3500, ["If_both"] = 6400000, ["If_either"] = 4900, ["If_empty"] = 2500000, ["If_first_display_both"] = 57000, ["If_in_page"] = 7000, ["If_last_display_both"] = 26000, ["If_preview"] = 53000, ["If_then_show"] = 193000, ["Ifempty"] = 3500, ["Ifeq"] = 2000, ["Ifexist_not_redirect"] = 426000, ["Ifnotempty"] = 14000, ["Ifnumber"] = 21000, ["Ifsubst"] = 71000, ["Ih"] = 7200, ["Ill"] = 69000, ["Illm"] = 6300, ["Image_frame"] = 2600, ["Image_label"] = 4400, ["Image_label_begin"] = 3600, ["Image_label_end"] = 3200, ["Image_label_small"] = 2500, ["Image_needed"] = 4200, ["Image_other"] = 324000, ["Image_requested"] = 163000, ["Image_requested/Category_helper"] = 158000, ["Imbox"] = 904000, ["Imdb_episode"] = 2400, ["Imdb_name"] = 7400, ["Imdb_title"] = 14000, ["Importance"] = 5230000, ["Importance/colour"] = 5250000, ["Importance_mask"] = 8110000, ["Improve_categories"] = 5100, ["In_class"] = 4300, ["In_lang"] = 335000, ["In_string"] = 51000, ["In_title"] = 14000, ["Inactive_WikiProject_banner"] = 143000, ["Inactive_userpage_blanked"] = 4400, ["Include-USGov"] = 30000, ["Incomplete_list"] = 20000, ["Increase"] = 36000, ["Incumbent_pope"] = 4300, ["Independent/meta/color"] = 5800, ["Independent_(US)/meta/color"] = 3300, ["Independent_(politician)/meta/color"] = 13000, ["Independent_(politician)/meta/shortname"] = 11000, ["Independent_politician/meta/color"] = 20000, ["Independent_politician/meta/shortname"] = 16000, ["IndexFungorum"] = 2200, ["Indian_English"] = 3700, ["Indian_National_Congress/meta/color"] = 4000, ["Indian_National_Congress/meta/shortname"] = 3100, ["Indian_Rupee"] = 8800, ["Indian_railway_code"] = 2900, ["Inflation"] = 14000, ["Inflation-fn"] = 4800, ["Inflation-year"] = 3700, ["Inflation/IN/startyear"] = 4900, ["Inflation/UK"] = 3600, ["Inflation/UK/dataset"] = 3600, ["Inflation/UK/startyear"] = 3600, ["Inflation/US"] = 8900, ["Inflation/US/dataset"] = 8900, ["Inflation/US/startyear"] = 8900, ["Inflation/fn"] = 5200, ["Inflation/year"] = 19000, ["Info"] = 7800, ["Infobox"] = 3520000, ["Infobox3cols"] = 269000, ["Infobox_AFL_biography"] = 14000, ["Infobox_Aircraft_Begin"] = 8000, ["Infobox_Aircraft_Type"] = 7200, ["Infobox_Athletics_Championships"] = 2400, ["Infobox_Australian_place"] = 15000, ["Infobox_CFL_biography"] = 6100, ["Infobox_CFL_biography/position"] = 6000, ["Infobox_COA_wide"] = 2300, ["Infobox_Canada_electoral_district"] = 2400, ["Infobox_Chinese"] = 16000, ["Infobox_Chinese/Footer"] = 8900, ["Infobox_Chinese/Header"] = 8900, ["Infobox_Chinese/Korean"] = 14000, ["Infobox_Christian_leader"] = 16000, ["Infobox_Congressman"] = 2100, ["Infobox_Election"] = 3300, ["Infobox_French_commune"] = 37000, ["Infobox_GAA_player"] = 3400, ["Infobox_Gaelic_Athletic_Association_player"] = 4500, ["Infobox_German_location"] = 13000, ["Infobox_German_place"] = 13000, ["Infobox_Greece_place"] = 2700, ["Infobox_Greek_Dimos"] = 2700, ["Infobox_Hindu_temple"] = 2000, ["Infobox_Italian_comune"] = 8100, ["Infobox_Korean_name"] = 14000, ["Infobox_Korean_name/categories"] = 14000, ["Infobox_MLB_yearly"] = 3000, ["Infobox_NCAA_team_season"] = 24000, ["Infobox_NFL_biography"] = 25000, ["Infobox_NFL_player"] = 11000, ["Infobox_NFL_season"] = 2900, ["Infobox_NFL_team_season"] = 3800, ["Infobox_NRHP"] = 71000, ["Infobox_NRHP/conv"] = 17000, ["Infobox_NRHP/locmapin2region"] = 65000, ["Infobox_Newspaper"] = 2700, ["Infobox_Officeholder"] = 9500, ["Infobox_Olympic_event"] = 6700, ["Infobox_Olympic_event/games_text"] = 6700, ["Infobox_Organization"] = 2500, ["Infobox_Paralympic_event"] = 2100, ["Infobox_Paralympic_event/games_text"] = 2100, ["Infobox_Person"] = 2500, ["Infobox_Politician"] = 4500, ["Infobox_Romanian_subdivision"] = 3200, ["Infobox_Russian_district"] = 2000, ["Infobox_Russian_inhabited_locality"] = 3500, ["Infobox_SCOTUS_case"] = 3500, ["Infobox_SCOTUS_case/courts"] = 3600, ["Infobox_SSSI"] = 2000, ["Infobox_Site_of_Special_Scientific_Interest"] = 2000, ["Infobox_Software"] = 2400, ["Infobox_State_Representative"] = 2400, ["Infobox_Swiss_town"] = 2800, ["Infobox_Switzerland_municipality"] = 2800, ["Infobox_U.S._county"] = 3000, ["Infobox_U.S._county/district"] = 3000, ["Infobox_UK_legislation"] = 2100, ["Infobox_UK_place"] = 25000, ["Infobox_UK_place/NoDialCode"] = 7500, ["Infobox_UK_place/NoPostCode"] = 2700, ["Infobox_UK_place/area"] = 2100, ["Infobox_UK_place/dist"] = 2400, ["Infobox_UK_place/local"] = 25000, ["Infobox_UK_place/styles.css"] = 25000, ["Infobox_UN_resolution"] = 2200, ["Infobox_US_Supreme_Court_case"] = 3600, ["Infobox_US_Supreme_Court_case/courts"] = 3600, ["Infobox_University"] = 2100, ["Infobox_Wikipedia_user"] = 8200, ["Infobox_academic"] = 9000, ["Infobox_aircraft_begin"] = 14000, ["Infobox_aircraft_occurrence"] = 2000, ["Infobox_aircraft_type"] = 13000, ["Infobox_airline"] = 4400, ["Infobox_airport"] = 15000, ["Infobox_airport/datatable"] = 15000, ["Infobox_album"] = 157000, ["Infobox_album/color"] = 180000, ["Infobox_album/link"] = 157000, ["Infobox_anatomy"] = 4400, ["Infobox_ancient_site"] = 4300, ["Infobox_animanga/Footer"] = 6000, ["Infobox_animanga/Header"] = 6000, ["Infobox_animanga/Print"] = 4700, ["Infobox_animanga/Video"] = 4200, ["Infobox_architect"] = 3100, ["Infobox_artist"] = 25000, ["Infobox_artist_discography"] = 5400, ["Infobox_artwork"] = 9500, ["Infobox_athlete"] = 4300, ["Infobox_attraction/status"] = 2800, ["Infobox_automobile"] = 7700, ["Infobox_award"] = 11000, ["Infobox_badminton_player"] = 2800, ["Infobox_baseball_biography"] = 26000, ["Infobox_baseball_biography/style"] = 26000, ["Infobox_basketball_biography"] = 19000, ["Infobox_basketball_biography/style"] = 19000, ["Infobox_basketball_club"] = 2800, ["Infobox_bilateral_relations"] = 4000, ["Infobox_body_of_water"] = 17000, ["Infobox_book"] = 47000, ["Infobox_boxer"] = 5200, ["Infobox_bridge"] = 5600, ["Infobox_building"] = 24000, ["Infobox_character"] = 7500, ["Infobox_chess_biography"] = 2900, ["Infobox_chess_player"] = 2600, ["Infobox_church"] = 13000, ["Infobox_church/denomination"] = 13000, ["Infobox_church/font_color"] = 13000, ["Infobox_civilian_attack"] = 4200, ["Infobox_college_coach"] = 11000, ["Infobox_college_sports_team_season"] = 32000, ["Infobox_college_sports_team_season/link"] = 32000, ["Infobox_college_sports_team_season/name"] = 32000, ["Infobox_college_sports_team_season/succession"] = 32000, ["Infobox_college_sports_team_season/team"] = 32000, ["Infobox_comic_book_title"] = 2800, ["Infobox_comics_character"] = 3700, ["Infobox_comics_creator"] = 3400, ["Infobox_company"] = 78000, ["Infobox_concert"] = 3000, ["Infobox_constituency"] = 4700, ["Infobox_country"] = 5500, ["Infobox_country/formernext"] = 5300, ["Infobox_country/imagetable"] = 4500, ["Infobox_country/multirow"] = 7200, ["Infobox_country/status_text"] = 2400, ["Infobox_country_at_games"] = 13000, ["Infobox_country_at_games/core"] = 13000, ["Infobox_court_case"] = 4200, ["Infobox_court_case/images"] = 4200, ["Infobox_cricketer"] = 31000, ["Infobox_cricketer/career"] = 31000, ["Infobox_cricketer/national_side"] = 7300, ["Infobox_criminal"] = 4600, ["Infobox_cultivar"] = 2300, ["Infobox_curler"] = 2300, ["Infobox_cycling_race_report"] = 4100, ["Infobox_cyclist"] = 15000, ["Infobox_dam"] = 4100, ["Infobox_designation_list"] = 16000, ["Infobox_designation_list/entry"] = 14000, ["Infobox_dim"] = 5800, ["Infobox_dim/core"] = 5800, ["Infobox_diocese"] = 3800, ["Infobox_drug"] = 8400, ["Infobox_drug/chemical_formula"] = 8400, ["Infobox_drug/formatATC"] = 8300, ["Infobox_drug/formatCASnumber"] = 8400, ["Infobox_drug/formatChEBI"] = 8400, ["Infobox_drug/formatChEMBL"] = 8400, ["Infobox_drug/formatChemDBNIAID"] = 8400, ["Infobox_drug/formatChemSpider"] = 8400, ["Infobox_drug/formatCompTox"] = 8400, ["Infobox_drug/formatDrugBank"] = 8400, ["Infobox_drug/formatIUPHARBPS"] = 8400, ["Infobox_drug/formatJmol"] = 8400, ["Infobox_drug/formatKEGG"] = 8400, ["Infobox_drug/formatPDBligand"] = 7800, ["Infobox_drug/formatPubChemCID"] = 8400, ["Infobox_drug/formatPubChemSID"] = 8400, ["Infobox_drug/formatUNII"] = 8400, ["Infobox_drug/legal_status"] = 8500, ["Infobox_drug/licence"] = 8400, ["Infobox_drug/maintenance_categories"] = 8400, ["Infobox_drug/pregnancy_category"] = 8400, ["Infobox_drug/title"] = 8400, ["Infobox_election"] = 23000, ["Infobox_election/row"] = 23000, ["Infobox_election/shortname"] = 22000, ["Infobox_enzyme"] = 5100, ["Infobox_ethnic_group"] = 6600, ["Infobox_event"] = 3900, ["Infobox_figure_skater"] = 4000, ["Infobox_film"] = 146000, ["Infobox_film/short_description"] = 146000, ["Infobox_film_awards"] = 2300, ["Infobox_film_awards/link"] = 2300, ["Infobox_film_awards/style"] = 2300, ["Infobox_food"] = 6400, ["Infobox_football_biography"] = 188000, ["Infobox_football_club"] = 25000, ["Infobox_football_club_season"] = 17000, ["Infobox_football_league"] = 2300, ["Infobox_football_league_season"] = 17000, ["Infobox_football_match"] = 5100, ["Infobox_football_tournament_season"] = 6200, ["Infobox_former_subdivision"] = 2900, ["Infobox_game"] = 2100, ["Infobox_game_score"] = 3200, ["Infobox_gene"] = 13000, ["Infobox_given_name"] = 3700, ["Infobox_golfer"] = 4000, ["Infobox_golfer/highest_ranking"] = 4000, ["Infobox_government_agency"] = 8900, ["Infobox_gridiron_football_person"] = 3800, ["Infobox_gridiron_football_person/position"] = 6000, ["Infobox_gymnast"] = 2900, ["Infobox_handball_biography"] = 4500, ["Infobox_historic_site"] = 9400, ["Infobox_horseraces"] = 2500, ["Infobox_hospital"] = 5900, ["Infobox_hospital/care_system"] = 5900, ["Infobox_hospital/lists"] = 5900, ["Infobox_ice_hockey_player"] = 18000, ["Infobox_information_appliance"] = 2000, ["Infobox_international_football_competition"] = 5200, ["Infobox_islands"] = 8200, ["Infobox_islands/area"] = 8600, ["Infobox_islands/density"] = 8600, ["Infobox_islands/length"] = 8200, ["Infobox_islands/styles.css"] = 8200, ["Infobox_journal"] = 9200, ["Infobox_journal/Abbreviation_search"] = 9100, ["Infobox_journal/Bluebook_check"] = 8900, ["Infobox_journal/Former_check"] = 8900, ["Infobox_journal/ISO_4_check"] = 8900, ["Infobox_journal/ISSN-eISSN"] = 9000, ["Infobox_journal/Indexing_search"] = 9000, ["Infobox_journal/MathSciNet_check"] = 8900, ["Infobox_journal/NLM_check"] = 8900, ["Infobox_journal/frequency"] = 8100, ["Infobox_judge"] = 2700, ["Infobox_lake"] = 5000, ["Infobox_language"] = 9100, ["Infobox_language/family-color"] = 11000, ["Infobox_language/genetic"] = 6300, ["Infobox_language/linguistlist"] = 9100, ["Infobox_language/ref"] = 6800, ["Infobox_legislature"] = 3000, ["Infobox_lighthouse"] = 2600, ["Infobox_lighthouse/NGA"] = 2600, ["Infobox_lighthouse/light"] = 2600, ["Infobox_locomotive"] = 4300, ["Infobox_magazine"] = 6900, ["Infobox_manner_of_address"] = 3000, ["Infobox_mapframe"] = 80000, ["Infobox_martial_artist"] = 5200, ["Infobox_martial_artist/record"] = 5200, ["Infobox_medal_templates"] = 385000, ["Infobox_medical_condition"] = 9100, ["Infobox_medical_condition_(new)"] = 7900, ["Infobox_military_conflict"] = 19000, ["Infobox_military_installation"] = 8800, ["Infobox_military_person"] = 40000, ["Infobox_military_structure"] = 2100, ["Infobox_military_unit"] = 24000, ["Infobox_model"] = 2300, ["Infobox_monarch"] = 2000, ["Infobox_mountain"] = 26000, ["Infobox_museum"] = 9000, ["Infobox_musical_artist"] = 116000, ["Infobox_musical_artist/color"] = 116000, ["Infobox_musical_artist/hCard_class"] = 295000, ["Infobox_musical_artist/tracking"] = 103000, ["Infobox_musical_composition"] = 2400, ["Infobox_name"] = 6700, ["Infobox_name_module"] = 8400, ["Infobox_newspaper"] = 8900, ["Infobox_nobility"] = 3100, ["Infobox_noble"] = 6500, ["Infobox_officeholder"] = 181000, ["Infobox_officeholder/office"] = 185000, ["Infobox_official_post"] = 6600, ["Infobox_organization"] = 32000, ["Infobox_pageant_titleholder"] = 2600, ["Infobox_park"] = 6400, ["Infobox_person"] = 410000, ["Infobox_person/Wikidata"] = 3300, ["Infobox_person/height"] = 105000, ["Infobox_person/length"] = 6800, ["Infobox_person/weight"] = 73000, ["Infobox_philosopher"] = 3000, ["Infobox_planet"] = 4600, ["Infobox_play"] = 3300, ["Infobox_political_party"] = 12000, ["Infobox_power_station"] = 2700, ["Infobox_prepared_food"] = 3800, ["Infobox_professional_wrestler"] = 3800, ["Infobox_professional_wrestling_event"] = 2300, ["Infobox_protected_area"] = 13000, ["Infobox_protein_family"] = 2100, ["Infobox_publisher"] = 2300, ["Infobox_racehorse"] = 5300, ["Infobox_racing_driver"] = 3100, ["Infobox_radio_station"] = 22000, ["Infobox_rail"] = 2700, ["Infobox_rail_line"] = 6600, ["Infobox_rail_line/tracking"] = 6600, ["Infobox_rail_service"] = 2700, ["Infobox_reality_competition_season"] = 2800, ["Infobox_record_label"] = 3900, ["Infobox_recurring_event"] = 5600, ["Infobox_religious_biography"] = 4300, ["Infobox_religious_building"] = 11000, ["Infobox_religious_building/color"] = 15000, ["Infobox_requested"] = 2500, ["Infobox_river"] = 28000, ["Infobox_river/calcunit"] = 28000, ["Infobox_river/discharge"] = 28000, ["Infobox_river/row-style"] = 28000, ["Infobox_river/source"] = 28000, ["Infobox_road"] = 24000, ["Infobox_road/banner"] = 13000, ["Infobox_road/browselinks/USA"] = 13000, ["Infobox_road/hide/cities"] = 2100, ["Infobox_road/maint/USA"] = 13000, ["Infobox_road/meta/colors"] = 2300, ["Infobox_road/meta/errors"] = 24000, ["Infobox_road/meta/mask/category"] = 23000, ["Infobox_road/meta/mask/country"] = 24000, ["Infobox_road/meta/mask/subtype1"] = 13000, ["Infobox_road/meta/mask/subtype2"] = 12000, ["Infobox_road/name/USA"] = 13000, ["Infobox_road/name/USA/StateName"] = 6500, ["Infobox_road/shield/USA"] = 13000, ["Infobox_road/shieldmain/USA"] = 13000, ["Infobox_road_small"] = 2200, ["Infobox_rockunit"] = 6300, ["Infobox_royalty"] = 19000, ["Infobox_royalty/short_description"] = 19000, ["Infobox_rugby_biography"] = 14000, ["Infobox_rugby_biography/correct_date"] = 14000, ["Infobox_rugby_biography/depcheck"] = 6700, ["Infobox_rugby_league_biography"] = 9200, ["Infobox_rugby_league_biography/PLAYER"] = 9100, ["Infobox_rugby_team"] = 2500, ["Infobox_saint"] = 4500, ["Infobox_school"] = 39000, ["Infobox_school/short_description"] = 39000, ["Infobox_school_district"] = 3700, ["Infobox_scientist"] = 42000, ["Infobox_service_record"] = 2400, ["Infobox_settlement"] = 536000, ["Infobox_settlement/areadisp"] = 215000, ["Infobox_settlement/columns"] = 86000, ["Infobox_settlement/columns/styles.css"] = 86000, ["Infobox_settlement/densdisp"] = 402000, ["Infobox_settlement/impus"] = 76000, ["Infobox_settlement/lengthdisp"] = 158000, ["Infobox_settlement/link"] = 86000, ["Infobox_settlement/metric"] = 192000, ["Infobox_settlement/pref"] = 269000, ["Infobox_ship_begin"] = 38000, ["Infobox_ship_career"] = 35000, ["Infobox_ship_characteristics"] = 38000, ["Infobox_ship_class_overview"] = 3700, ["Infobox_ship_image"] = 38000, ["Infobox_shopping_mall"] = 3200, ["Infobox_short_story"] = 2100, ["Infobox_skier"] = 2400, ["Infobox_soap_character"] = 3000, ["Infobox_software"] = 14000, ["Infobox_software/simple"] = 14000, ["Infobox_song"] = 70000, ["Infobox_song/color"] = 70000, ["Infobox_song/link"] = 70000, ["Infobox_spaceflight"] = 3400, ["Infobox_speed_skater"] = 2500, ["Infobox_sports_competition_event"] = 12000, ["Infobox_sports_competition_event/medalrow"] = 8300, ["Infobox_sports_league"] = 3500, ["Infobox_sports_season"] = 4300, ["Infobox_sports_team"] = 2000, ["Infobox_sportsperson"] = 99000, ["Infobox_stadium"] = 4800, ["Infobox_state_representative"] = 2900, ["Infobox_station"] = 52000, ["Infobox_station/doc"] = 51000, ["Infobox_station/services"] = 52000, ["Infobox_station/styles.css"] = 52000, ["Infobox_street"] = 2800, ["Infobox_swimmer"] = 9000, ["Infobox_television"] = 52000, ["Infobox_television_channel"] = 6100, ["Infobox_television_episode"] = 11000, ["Infobox_television_episode/italic_title"] = 11000, ["Infobox_television_season"] = 8400, ["Infobox_television_station"] = 3700, ["Infobox_tennis_biography"] = 8400, ["Infobox_tennis_tournament_event"] = 16000, ["Infobox_tennis_tournament_year"] = 8000, ["Infobox_tennis_tournament_year/color"] = 24000, ["Infobox_tennis_tournament_year/footer"] = 24000, ["Infobox_train"] = 2100, ["Infobox_tropical_cyclone"] = 2200, ["Infobox_union"] = 2200, ["Infobox_university"] = 26000, ["Infobox_user"] = 2600, ["Infobox_venue"] = 17000, ["Infobox_video_game"] = 26000, ["Infobox_volleyball_biography"] = 5000, ["Infobox_weapon"] = 6900, ["Infobox_website"] = 7400, ["Infobox_writer"] = 34000, ["Information"] = 126000, ["Inline"] = 2300, ["Input_link"] = 33000, ["Inputbox"] = 11000, ["Instagram"] = 7200, ["Interlanguage_link"] = 103000, ["Interlanguage_link_multi"] = 21000, ["Internet_Archive_author"] = 18000, ["Internet_Archive_film"] = 2300, ["Intitle"] = 8700, ["Invalid_SVG"] = 4500, ["Invalid_SVG/styles.css"] = 4500, ["Ipsock"] = 13000, ["Iptalk"] = 22000, ["IranCensus2006"] = 55000, ["IranNCSGN"] = 3300, ["Iran_Census_2006"] = 55000, ["Irc"] = 2100, ["Irish_place_name"] = 2400, ["IsValidPageName"] = 113000, ["Is_article"] = 3900, ["Is_country_in_Central_America"] = 12000, ["Is_country_in_the_Caribbean"] = 13000, ["Is_empty"] = 4200, ["Is_interwiki_link"] = 5800, ["Is_italic_taxon"] = 353000, ["Isbn"] = 4700, ["Isfdb_name"] = 3900, ["Isfdb_title"] = 4300, ["Isnumeric"] = 180000, ["Iso2continent"] = 23000, ["Iso2country"] = 21000, ["Iso2country/article"] = 20000, ["Iso2country/data"] = 21000, ["Iso2nationality"] = 69000, ["Issubst"] = 78000, ["Isu_name"] = 2200, ["Italic_dab"] = 4800, ["Italic_title"] = 773000, ["Italic_title_prefixed"] = 8300, ["Italics_colon"] = 2900, ["Italictitle"] = 5200, ["Ivm"] = 5700, ["Ivm/styles.css"] = 5700, ["Ivmbox"] = 112000, ["Ivory_messagebox"] = 112000, ["Module:I18n/complex_date"] = 62000, ["Module:IP"] = 75000, ["Module:IPA_symbol"] = 3000, ["Module:IPA_symbol/data"] = 3000, ["Module:IPAc-en"] = 42000, ["Module:IPAc-en/data"] = 42000, ["Module:IPAc-en/phonemes"] = 42000, ["Module:IPAc-en/pronunciation"] = 42000, ["Module:IPAddress"] = 98000, ["Module:ISO_3166"] = 681000, ["Module:ISO_3166/data/AT"] = 2400, ["Module:ISO_3166/data/BA"] = 3300, ["Module:ISO_3166/data/CA"] = 2500, ["Module:ISO_3166/data/DE"] = 14000, ["Module:ISO_3166/data/ES"] = 2500, ["Module:ISO_3166/data/FR"] = 38000, ["Module:ISO_3166/data/GB"] = 5700, ["Module:ISO_3166/data/GR"] = 2900, ["Module:ISO_3166/data/IN"] = 25000, ["Module:ISO_3166/data/National"] = 681000, ["Module:ISO_3166/data/RS"] = 3200, ["Module:ISO_3166/data/RU"] = 23000, ["Module:ISO_3166/data/US"] = 80000, ["Module:ISO_639_name"] = 13000, ["Module:ISOdate"] = 62000, ["Module:Icon"] = 508000, ["Module:Icon/data"] = 508000, ["Module:If_empty"] = 2500000, ["Module:If_in_page"] = 7000, ["Module:If_preview"] = 416000, ["Module:If_preview/configuration"] = 416000, ["Module:If_preview/styles.css"] = 416000, ["Module:In_lang"] = 335000, ["Module:Infobox"] = 3730000, ["Module:Infobox/dates"] = 61000, ["Module:Infobox3cols"] = 282000, ["Module:InfoboxImage"] = 3970000, ["Module:Infobox_body_of_water_tracking"] = 17000, ["Module:Infobox_cyclist_tracking"] = 15000, ["Module:Infobox_gene"] = 13000, ["Module:Infobox_mapframe"] = 337000, ["Module:Infobox_military_conflict"] = 19000, ["Module:Infobox_military_conflict/styles.css"] = 19000, ["Module:Infobox_multi-lingual_name"] = 16000, ["Module:Infobox_multi-lingual_name/data"] = 16000, ["Module:Infobox_power_station"] = 2700, ["Module:Infobox_road"] = 24000, ["Module:Infobox_road/color"] = 24000, ["Module:Infobox_road/length"] = 24000, ["Module:Infobox_road/locations"] = 24000, ["Module:Infobox_road/map"] = 24000, ["Module:Infobox_road/meta/mask/country"] = 15000, ["Module:Infobox_television_disambiguation_check"] = 58000, ["Module:Infobox_television_season_disambiguation_check"] = 7900, ["Module:Infobox_television_season_name"] = 8400, ["Module:Internet_Archive"] = 18000, ["Module:IrelandByCountyCatNav"] = 2500, ["Module:Is_infobox_in_lead"] = 275000, ["Module:Italic_title"] = 1030000, } 927457ecccad86d414e2032dd7a0b31fc458b73d Main Page 0 1 1 2021-06-24T02:25:00Z MediaWiki default 1 Create main page wikitext text/x-wiki __NOTOC__ == Welcome to {{SITENAME}}! == This Main Page was automatically created by a wiki creator (a volunteer who created this wiki per a request), and it seems it hasn't been replaced yet. === For the bureaucrat(s) of this wiki === Hello, and welcome at your new wiki! Thank you for choosing Miraheze for the hosting of your wiki, and we hope you will enjoy our hosting. You can immediately start working on your wiki, whenever you want. Need help? No problem! We will help you with your wiki as needed. To make a start we have added a few links about working with MediaWiki: * <span class="plainlinks">[[mw:Special:MyLanguage/Help:Contents|MediaWiki guide (e.g. navigation, editing, deleting pages, blocking users)]] * [[meta:FAQ|Miraheze FAQ]] * [[meta:Request features|Request settings changes on your wiki. (Extensions and Logo/Favicon changes should be done through Special:ManageWiki on your wiki]]. ==== But Miraheze, I still don't understand X! ==== Well, that's no problem. Even if something isn't explained in the documentation/FAQ, we still are happy to help you. You can find us here: * [[meta:Help center|On our own Miraheze wiki]] * On [[phab:|Phabricator]] * On [https://miraheze.org/discord Discord] * On IRC in #miraheze on irc.libera.chat ([irc://irc.libera.chat/%23miraheze direct link]; [https://web.libera.chat/?channel=#miraheze webchat]) === For a visitor of this wiki === Hello, the default Main Page of this wiki (this is the default Main Page) has not been replaced yet by the bureaucrat(s) of this wiki. The bureaucrat(s) might still be working on a Main Page, so please check this page again later! 280d2fe41ede3b4c845911c622cfd71e3e26414f 2 1 2021-06-24T02:51:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 edited it for stuff wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [Help_center] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! f8b338922f9250e1a165ddfe6accf6c4a6ffd65c 3 2 2021-06-24T02:52:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [<tvar|miraheze>Help_center] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! 2060a6ba45492356026ae8c81b67ea3e8cca048d 4 3 2021-06-24T02:52:31Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [<tvar|Help_center] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! 62c1c60388396dc99470b61e19a5ac805227a6bf 5 4 2021-06-24T02:53:11Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [[meta:Help_center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! adfd16881058c961c90954dc2af7b227ca3652ea 6 5 2021-06-24T02:53:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! 1935fc11e546ad5f3cce9cc4981c4fc8ccf52ae2 7 6 2021-06-24T02:55:03Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. a301bf814cb3b3697e08f1ccf98807bfaf580ddd File:Jacknjellify.ico 6 2 8 2021-06-24T03:13:01Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 File:Wikilogo.png 6 3 9 2021-06-24T03:14:14Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 MediaWiki:Wikia.css 8 4 10 2021-06-24T03:34:46Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "H2 { color: green }" css text/css H2 { color: green } 4a8c73d88ec8f36ae0249b5f3c5c1ac3dc64bfb4 MediaWiki:Common.css 8 5 11 2021-06-24T03:37:35Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "/* CSS placed here will be applied to all skins */ H2 { color: #23BF7C } H3 { color: #23BF7C } H4 { color: #23BF7C } H5 { color: #23BF7C } #content { background-color: #22EF98; }" css text/css /* CSS placed here will be applied to all skins */ H2 { color: #23BF7C } H3 { color: #23BF7C } H4 { color: #23BF7C } H5 { color: #23BF7C } #content { background-color: #22EF98; } b011c786447fb78f1facc0e95c9b64c1a80c3b23 12 11 2021-06-24T03:39:42Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 css text/css /* CSS placed here will be applied to all skins */ H2 { color: #23BF7C } H3 { color: #23BF7C } H4 { color: #23BF7C } H5 { color: #23BF7C } #content { background-color: #22EF98; } /* Framework */ body { background-color:#34E79A 38138f16ac7ffa6218ec1f129650f58791002fe3 13 12 2021-06-24T03:41:22Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Blanked the page css text/css da39a3ee5e6b4b0d3255bfef95601890afd80709 Template:Infobox character 10 6 15 14 2021-06-24T03:43:19Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{Infobox | bodystyle = border-spacing: 2px 5px; | above = {{If empty |{{{name|}}} |<includeonly>{{PAGENAMEBASE}}</includeonly> }} | abovestyle = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} | color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }} | subheader = {{#if: {{{series|}}}{{{franchise|}}} | {{#if: {{{series|}}} | ''{{{series|}}}'' | {{{franchise|}}} }} character{{#if: {{{multiple|}}} | s }} }} | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}}} | caption = {{{caption|}}} | headerstyle = background: {{If empty |{{{color|}}} |{{{colour|}}} |#DEDEE2 }}; {{#if: {{{color|}}}{{{colour|}}} |color: {{Greater color contrast ratio|{{If empty |{{{color|}}} |{{{colour|}}} }}|black|white }}; }} | label1 = First appearance | data1 = {{#if: {{{first|}}} | {{{first|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{first_major|}}} |minor_work={{{first_minor|}}} |issue={{{first_issue|}}} |date={{{first_date|}}} }} }} | label2 = First game | data2 = {{{firstgame|}}} | label3 = Last appearance | data3 = {{#if: {{{last|}}} | {{{last|}}} | {{#invoke:Formatted appearance|getFormattedAppearance|major_work={{{last_major|}}} |minor_work={{{last_minor|}}} |issue={{{last_issue|}}} |date={{{last_date|}}} }} }} | label4 = Created by | data4 = {{{creator|}}} | label5 = Based on | data5 = {{{based_on|}}} | label6 = Adapted by | data6 = {{{adapted_by|}}} | label7 = Designed by | data7 = {{{designer|}}} | label8 = Portrayed by | data8 = {{{portrayer|}}} | label9 = Voiced by | data9 = {{{voice|}}} | label10 = Motion capture | data10 = {{{motion_actor|}}} | label11 = {{{lbl1|}}} | data11 = {{{data1|}}} | label12 = {{{lbl2|}}} | data12 = {{{data2|}}} | label13 = {{{lbl3|}}} | data13 = {{{data3|}}} | label14 = {{{lbl4|}}} | data14 = {{{data4|}}} | label15 = {{{lbl5|}}} | data15 = {{{data5|}}} | header20 = {{#if: {{{noinfo|}}} || {{#if: {{{full_name|}}} {{{alias|}}} {{{aliases|}}} {{{nickname|}}} {{{nicknames|}}} {{{race|}}} {{{species|}}} {{{gender|}}} {{{title|}}} {{{occupation|}}} {{{position|}}} {{{class|}}} {{{affiliation|}}} {{{alignment|}}} {{{fighting_style|}}} {{{weapon|}}} {{{family|}}} {{{spouse|}}} {{{spouses|}}} {{{significant_other|}}} {{{significant_others|}}} {{{children|}}} {{{relatives|}}} {{{religion|}}} {{{origin|}}} {{{home|}}} {{{nationality|}}} {{{data21|}}} {{{data22|}}} {{{data23|}}} {{{data24|}}} {{{data25|}}} | {{If empty |{{{info-hdr|}}} |In-universe information }} }} }} | label21 = Full name | data21 = {{{full_name|}}} | label22 = {{#if: {{{alias|}}} | Alias | Aliases }} | data22 = {{If empty |{{{alias|}}} |{{{aliases|}}} }} | label23 = {{#if: {{{nickname|}}} | Nickname | Nicknames }} | data23 = {{If empty |{{{nickname|}}} |{{{nicknames|}}} }} | label24 = {{#if: {{{race|}}} | Race | Species }} | data24 = {{If empty |{{{race|}}} |{{{species|}}} }} | label25 = Gender | data25 = {{{gender|}}} | label26 = Title | data26 = {{{title|}}} | label27 = {{#if: {{{occupation|}}} | Occupation | {{#if: {{{position|}}} | Position | Class }} }} | data27 = {{If empty |{{{occupation|}}} |{{{position|}}} |{{{class|}}} }} | label28 = {{#if: {{{affiliation|}}} | Affiliation | Alignment }} | data28 = {{If empty |{{{affiliation|}}} |{{{alignment|}}} }} | label29 = Fighting style | data29 = {{{fighting_style|}}} | label30 = Weapon | data30 = {{{weapon|}}} | label31 = Family | data31 = {{{family|}}} | label32 = {{#if: {{{spouse|}}} | Spouse | Spouses }} | data32 = {{If empty |{{{spouse|}}} |{{{spouses|}}} }} | label33 = {{#if: {{{significant_other|}}} | Significant {{nowrap|other}} | Significant {{nowrap|others}} }} | data33 = {{If empty |{{{significant_other|}}} |{{{significant_others|}}} }} | label34 = Children | data34 = {{{children|}}} | label35 = Relatives | data35 = {{{relatives|}}} | label36 = Religion | data36 = {{{religion|}}} | label37 = {{#if: {{{origin|}}} | Origin | Home }} | data37 = {{If empty |{{{origin|}}} |{{{home|}}} }} | label38 = Nationality | data38 = {{{nationality|}}} | label39 = {{{lbl21|}}} | data39 = {{{data21|}}} | label40 = {{{lbl22|}}} | data40 = {{{data22|}}} | label41 = {{{lbl23|}}} | data41 = {{{data23|}}} | label42 = {{{lbl24|}}} | data42 = {{{data24|}}} | label43 = {{{lbl25|}}} | data43 = {{{data25|}}} | header50 = {{#if: {{{data31|}}} {{{data32|}}} {{{data33|}}} {{{data34|}}} {{{data35|}}} | {{{extra-hdr|}}} }} | label51 = {{{lbl31|}}} | data51 = {{{data31|}}} | label52 = {{{lbl32|}}} | data52 = {{{data32|}}} | label53 = {{{lbl33|}}} | data53 = {{{data33|}}} | label54 = {{{lbl34|}}} | data54 = {{{data34|}}} | label55 = {{{lbl35|}}} | data55 = {{{data35|}}} }}<!-- Start tracking -->{{Main other |{{#if: {{{lbl35|}}} {{{data35|}}} {{{lbl25|}}} {{{data25|}}} {{{lbl5|}}} {{{data5|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|5{{PAGENAME}}]] | {{#if: {{{lbl34|}}} {{{data34|}}} {{{lbl24|}}} {{{data24|}}} {{{lbl4|}}} {{{data4|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|4{{PAGENAME}}]] | {{#if: {{{lbl33|}}} {{{data33|}}} {{{lbl23|}}} {{{data23|}}} {{{lbl3|}}} {{{data3|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|3{{PAGENAME}}]] | {{#if: {{{lbl32|}}} {{{data32|}}} {{{lbl22|}}} {{{data22|}}} {{{lbl2|}}} {{{data2|}}} | [[Category:Articles using Infobox character with multiple unlabeled fields|2{{PAGENAME}}]] }} }} }} }}<!-- -->{{Ensure AAA contrast ratio|base={{If empty |{{{color|}}} |{{{colour|}}} }}|category={{Main other|[[Category:Articles using infoboxes for fictional elements with invalid color combination]]}}}}}}<!-- -->{{#invoke:Check for unknown parameters|check|unknown={{Main other|[[Category:Pages using infobox character with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox character]] with unknown parameter "_VALUE_"| adapted_by | affiliation | alias | aliases | alignment | alt | caption | children | class | color | colour | creator | based_on | data1 | data2 | data3 | data4 | data5 | data21 | data22 | data23 | data24 | data25 | data31 | data32 | data33 | data34 | data35 | designer | extra-hdr | family | fighting_style | first | first_date | first_issue | first_major | first_minor | firstgame | franchise | full_name | gender | home | image | image_size | image_upright | info-hdr | last | last_date | last_issue | last_major | last_minor | lbl1 | lbl2 | lbl3 | lbl4 | lbl5 | lbl21 | lbl22 | lbl23 | lbl24 | lbl25 | lbl31 | lbl32 | lbl33 | lbl34 | lbl35 | motion_actor | multiple | name | nationality | nickname | nicknames | noinfo | occupation | origin | portrayer | position | race | relatives | religion | series | significant_other | significant_others | species | spouse | spouses | title | voice | weapon }}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage, not here! --> </noinclude> f8e986420b84a311dfa3fd06b2de2ba15d003a04 Template:Based on 10 7 17 16 2021-06-24T03:43:19Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly>{{#invoke:Based on|main}}</includeonly><noinclude>{{Documentation}}</noinclude> 46792656a06b09c2ef31b84b58d60e444c54fbbd Template:Clc 10 9 21 20 2021-06-24T03:43:20Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki #REDIRECT [[Template:Category link with count]] 02280e2ab57b544236e11f913e3759c5781ca9d5 Template:Documentation 10 12 27 26 2021-06-24T03:43:21Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}}<noinclude> <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> ce7fd93f18c46b4fa871bf679afd05cbda72d8c4 Template:Documentation subpage 10 13 29 28 2021-06-24T03:43:22Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly><!-- -->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}} | <!--(this template has been transcluded on a /doc or /{{{override}}} page)--> </includeonly><!-- -->{{#ifeq:{{{doc-notice|show}}} |show | {{Mbox | type = notice | style = margin-bottom:1.0em; | image = [[File:Edit-copy green.svg|40px|alt=|link=]] | text = '''This is a [[Wikipedia:Template documentation|documentation]] [[Wikipedia:Subpages|subpage]] for {{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}'''.<br />It contains usage information, [[Wikipedia:Categorization|categories]] and other content that is not part of the original {{#if:{{{text2|}}} |{{{text2}}} |{{#if:{{{text1|}}} |{{{text1}}} |{{#ifeq:{{SUBJECTSPACE}} |{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} template page |{{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} page|article}}}}}}}}. }} }}<!-- -->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!-- -->{{#if:{{{inhibit|}}} |<!--(don't categorize)--> | <includeonly><!-- -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}} | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | [[Category:Documentation subpages without corresponding pages]] }}<!-- --></includeonly> }}<!-- (completing initial #ifeq: at start of template:) --><includeonly> | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)--> }}<!-- --></includeonly><noinclude>{{Documentation}}</noinclude> a1dda2f5e5ddf9097546af5acd7a7bad14fdac9d Template:Greater color contrast ratio 10 15 33 32 2021-06-24T03:43:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly>{{safesubst:#invoke:Color contrast|greatercontrast}}</includeonly><noinclude> {{documentation}} </noinclude> eaba2f8ea92d1caa3afd9d70142b65215c23038d Template:If empty 10 17 37 36 2021-06-24T03:43:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:If empty|main}}<noinclude>{{Documentation}}</noinclude> 745940b7bdde8a1585c887ee4ee5ce81d98461a4 Template:Infobox 10 18 39 38 2021-06-24T03:43:24Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude> {{documentation}} <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> </noinclude> 817a9f5b6524eced06a57bd1d5fd7179f9369bf2 Template:Lua 10 20 43 42 2021-06-24T03:43:25Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude> {{Lua|Module:Lua banner}} {{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> dba3962144dacd289dbc34f50fbe0a7bf6d7f2f7 Template:Main other 10 21 45 44 2021-06-24T03:43:25Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:0}} | main | other }} }} | main = {{{1|}}} | other | #default = {{{2|}}} }}<noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude> c8e5526da7586aff37928206e183ceef44ed7829 Template:Navbox 10 22 47 46 2021-06-24T03:43:26Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly>{{#invoke:Navbox|navbox}}</includeonly><noinclude> {{Documentation}} </noinclude> fe9b964401f895918ee4fe078678f1722a3c41ec Template:Nowrap 10 23 49 48 2021-06-24T03:43:26Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <span class="nowrap">{{{1}}}</span><noinclude> {{documentation}} <!-- Categories go on the /doc page; interwikis go to Wikidata. --> </noinclude> 5d0dc6b6d89b37f4356242404f46138a4017f015 Template:PAGENAMEBASE 10 24 51 50 2021-06-24T03:43:26Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{{{{|safesubst:}}}#Invoke:String|replace|{{{1|{{{{{|safesubst:}}}PAGENAME}}}}}|%s+%b()$||1|false}}<noinclude> {{documentation}} </noinclude> f23a5d434cb5b0baac5e1f58e9ceef9118e6873f Template:Para 10 25 53 52 2021-06-24T03:43:27Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <code class="nowrap" style="{{SAFESUBST:<noinclude />#if:{{{plain|}}}|border: none; background-color: inherit;}} {{SAFESUBST:<noinclude />#if:{{{plain|}}}{{{mxt|}}}{{{green|}}}{{{!mxt|}}}{{{red|}}}|color: {{SAFESUBST:<noinclude />#if:{{{mxt|}}}{{{green|}}}|#006400|{{SAFESUBST:<noinclude />#if:{{{!mxt|}}}{{{red|}}}|#8B0000|inherit}}}};}} {{SAFESUBST:<noinclude />#if:{{{style|}}}|{{{style}}}}}">&#124;{{SAFESUBST:<noinclude />#if:{{{1|}}}|{{{1}}}&#61;}}{{{2|}}}</code><noinclude> {{Documentation}} <!--Categories and interwikis go near the bottom of the /doc subpage.--> </noinclude> 96ef5dce1fb3a5c1b6648eac125a2496944a852e Template:Parameter names example 10 26 55 54 2021-06-24T03:43:27Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly>{{#invoke:Parameter names example|main}}</includeonly><noinclude> {{hatnote|[[Template:Generic template demo]] and [[Template:Pnex]] redirect here.}}<!--(hatnote more noticeable here than within Documentation)--> {{Documentation}} </noinclude> 6b63b13c0cf74f1f8d250aa644a6bd27e19052f6 Template:Plainlist 10 27 57 56 2021-06-24T03:43:28Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <div class="plainlist {{{class|}}}" {{#if:{{{style|}}}{{{indent|}}}|style="{{#if:{{{indent|}}}|margin-left: {{#expr:{{{indent}}}*1.6}}em;}} {{{style|}}}"}}>{{#if:{{{1|}}}| {{{1}}} </div>}}<noinclude></div> {{documentation}} </noinclude> cd6b6a5ffb75fb4f0a5b0f4e3a9aabbbf2213353 Template:Remove first word 10 28 59 58 2021-06-24T03:43:28Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:String|replace|source={{{1}}}|pattern=^[^{{{sep|%s}}}]*{{{sep|%s}}}*|replace=|plain=false}}<noinclude>{{Documentation}}</noinclude> df7a9e692f68be1581be06af5f51eaed5483b4c8 Template:Sandbox other 10 29 61 60 2021-06-24T03:43:28Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#if:{{#ifeq:{{#invoke:String|sublength|s={{SUBPAGENAME}}|i=0|len=7}}|sandbox|1}}{{#ifeq:{{SUBPAGENAME}}|doc|1}}{{#invoke:String|match|{{PAGENAME}}|/sandbox/styles.css$|plain=false|nomatch=}}|{{{1|}}}|{{{2|}}}}}<!-- --><noinclude>{{documentation}}</noinclude> 91e4ae891d6b791615152c1fbc971414961ba872 Template:Str left 10 30 63 62 2021-06-24T03:43:29Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly>{{safesubst:padleft:|{{{2|1}}}|{{{1}}}}}</includeonly><noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> 2048b0d7b35e156528655b1d090e8b5ffab3f400 Template:TemplateData header 10 31 65 64 2021-06-24T03:43:29Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <div class="templatedata-header">{{#if:{{{noheader|}}}|<!-- noheader: -->{{Template parameter usage}}|<!-- +header: -->This is the {{#if:{{{nolink|}}}|<!-- +header, nolink TD -->TemplateData|<!-- +header, +link [[TD]]; DEFAULT: -->[[Wikipedia:TemplateData|TemplateData]]}}<!-- e.o. #if:nolink; DEFAULT: --> documentation for this template used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools; {{Template parameter usage|lc=yes}}<!-- e.o. #if:noheader -->}} '''TemplateData for {{{1|{{BASEPAGENAME}}}}}''' </div><includeonly><!-- check parameters -->{{#invoke:Check for unknown parameters|check |unknown={{template other|1=[[Category:Pages using TemplateData header with unknown parameters|_VALUE_]]}} |template=Template:TemplateData header |1 |nolink |noheader |preview=<div class="error" style="font-weight:normal">Unknown parameter '_VALUE_' in [[Template:TemplateData header]].</div> }}<!-- -->{{template other|{{sandbox other|| [[Category:Templates using TemplateData]] }}}}</includeonly><!-- --><noinclude>{{Documentation}}</noinclude> 0e222b20800ec55b4bd931b36643b84b5846157b Template:Template link 10 32 67 66 2021-06-24T03:43:29Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki &#123;&#123;[[Template:{{{1}}}|{{{1}}}]]&#125;&#125;<noinclude>{{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> eabbec62efe3044a98ebb3ce9e7d4d43c222351d Template:Template other 10 33 69 68 2021-06-24T03:43:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:Template}} | template | other }} }} | template = {{{1|}}} | other | #default = {{{2|}}} }}<!--End switch--><noinclude> {{documentation}} <!-- Add categories and interwikis to the /doc subpage, not here! --> </noinclude> 06fb13d264df967b5232141067eb7d2b67372d76 Template:Template parameter usage 10 34 71 70 2021-06-24T03:43:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#switch:{{{label|}}} |={{#ifeq:{{yesno-no|{{{lc}}}}}|no|S|s}}ee the monthly [https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template={{Urlencode:{{#if:{{{1|}}}|{{ROOTPAGENAME:{{{1|}}}}}|{{ROOTPAGENAME}}}}}} parameter usage report] for {{#if:{{{1|}}}|[[Template:{{ROOTPAGENAME:{{{1|}}}}}]]|this template}}. |None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template={{Urlencode:{{#if:{{{1|}}}|{{ROOTPAGENAME:{{{1|}}}}}|{{ROOTPAGENAME}}}}}} Parameter usage report] |for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template={{Urlencode:{{#if:{{{1|}}}|{{ROOTPAGENAME:{{{1|}}}}}|{{ROOTPAGENAME}}}}}} Parameter usage report] for {{#if:{{{1|}}}|[[Template:{{ROOTPAGENAME:{{{1|}}}}}]]|[[Template:{{ROOTPAGENAME}}]]}}. |#default=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template={{Urlencode:{{#if:{{{1|}}}|{{ROOTPAGENAME:{{{1|}}}}}|{{ROOTPAGENAME}}}}}} {{{label|}}}] }}<noinclude> {{documentation}} </noinclude> cd2bad1a64fd267a566325fc8a83bce563ecaded Template:Tl 10 35 73 72 2021-06-24T03:43:31Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki #REDIRECT [[Template:Template link]] {{Redirect category shell| {{R from move}} }} d6593bb3b4a866249f55d0f34b047a71fe1f1529 Template:Unbulleted list 10 36 75 74 2021-06-24T03:43:31Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:list|unbulleted}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> 89815a491d3e05b20af446e34cda13f13c25fb4f Template:Yesno 10 37 77 76 2021-06-24T03:43:32Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#switch: {{<includeonly>safesubst:</includeonly>lc: {{{1|¬}}} }} |no |n |f |false |off |0 = {{{no|<!-- null -->}}} | = {{{blank|{{{no|<!-- null -->}}}}}} |¬ = {{{¬|}}} |yes |y |t |true |on |1 = {{{yes|yes}}} |#default = {{{def|{{{yes|yes}}}}}} }}<noinclude> {{Documentation}} </noinclude> 629c2937bc5cf7cfe13cd2a598582af832782399 Template:Yesno-no 10 38 79 78 2021-06-24T03:43:32Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{safesubst:<noinclude />yesno|{{{1}}}|yes={{{yes|yes}}}|no={{{no|no}}}|blank={{{blank|no}}}|¬={{{¬|no}}}|def={{{def|no}}}}}<noinclude> {{Documentation|Template:Yesno/doc}} <!--Categories go in the doc page referenced above; interwikis go in Wikidata.--> </noinclude> 1ad7b7800da1b867ead8f6ff8cef76e6201b3b56 Template:Documentation/styles.css 10 39 81 80 2021-06-24T03:43:34Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported text text/plain /* {{pp|small=yes}} */ .documentation, .documentation-metadata { border: 1px solid #a2a9b1; background-color: #ecfcf4; clear: both; } .documentation { margin: 1em 0 0 0; padding: 1em; } .documentation-metadata { margin: 0.2em 0; /* same margin left-right as .documentation */ font-style: italic; padding: 0.4em 1em; /* same padding left-right as .documentation */ } .documentation-startbox { padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex; } .documentation-heading { font-weight: bold; font-size: 125%; } .documentation-clear { /* Don't want things to stick out where they shouldn't. */ clear: both; } .documentation-toolbar { font-style: normal; font-size: 85%; } ce0e629c92e3d825ab9fd927fe6cc37d9117b6cb Template:Navbar/styles.css 10 40 83 82 2021-06-24T03:43:37Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported text text/plain /* {{pp|small=yes}} */ .navbar { display: inline; font-size: 88%; font-weight: normal; } .navbar-collapse { float: left; text-align: left; } .navbar-boxtext { word-spacing: 0; } .navbar ul { display: inline-block; white-space: nowrap; line-height: inherit; } .navbar-brackets::before { margin-right: -0.125em; content: '[ '; } .navbar-brackets::after { margin-left: -0.125em; content: ' ]'; } .navbar li { word-spacing: -0.125em; } .navbar-mini abbr { font-variant: small-caps; border-bottom: none; text-decoration: none; cursor: inherit; } .navbar-ct-full { font-size: 114%; margin: 0 7em; } .navbar-ct-mini { font-size: 114%; margin: 0 4em; } /* Navbar styling when nested in infobox and navbox Should consider having a separate TemplateStyles for those specific places using an infobox/navbox and a navbar, or possibly override from using template */ .infobox .navbar { font-size: 100%; } .navbox .navbar { display: block; font-size: 100%; } .navbox-title .navbar { /* @noflip */ float: left; /* @noflip */ text-align: left; /* @noflip */ margin-right: 0.5em; } f4cf6b1111f177ad6af0154b14f9c942400f3636 Module:Infobox 828 41 84 2021-06-24T03:45:19Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[..." Scribunto text/plain local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' local function fixChildBoxes(sval, tt) local function notempty( s ) return s and s:match( '%S' ) end if notempty(sval) then local marker = '<span class=special_infobox_marker>' local s = sval s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker) if s:match(marker) then s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '') s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1') s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1') s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1') end if s:match(marker) then local subcells = mw.text.split(s, marker) s = '' for k = 1, #subcells do if k == 1 then s = s .. subcells[k] .. '</' .. tt .. '></tr>' elseif k == #subcells then local rowstyle = ' style="display:none"' if notempty(subcells[k]) then rowstyle = '' end s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' .. subcells[k] elseif notempty(subcells[k]) then if (k % 2) == 0 then s = s .. subcells[k] else s = s .. '<tr><' .. tt .. ' colspan=2>\n' .. subcells[k] .. '</' .. tt .. '></tr>' end end end end -- the next two lines add a newline at the end of lists for the PHP parser -- [[Special:Diff/849054481]] -- remove when [[:phab:T191516]] is fixed or OBE s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1') s = mw.ustring.gsub(s, '^(%{%|)', '\n%1') return s else return sval end end -- Returns the union of the values of two tables, as a sequence. local function union(t1, t2) local vals = {} for k, v in pairs(t1) do vals[v] = true end for k, v in pairs(t2) do vals[v] = true end local ret = {} for k, v in pairs(vals) do table.insert(ret, k) end return ret end -- Returns a table containing the numbers of the arguments that exist -- for the specified prefix. For example, if the prefix was 'data', and -- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}. local function getArgNums(prefix) local nums = {} for k, v in pairs(args) do local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -- Adds a row to the infobox, with either a header cell -- or a label/data cell combination. local function addRow(rowArgs) if rowArgs.header and rowArgs.header ~= '_BLANK_' then root :tag('tr') :addClass(rowArgs.rowclass) :cssText(rowArgs.rowstyle) :tag('th') :attr('colspan', '2') :addClass('infobox-header') :addClass(rowArgs.class) :addClass(args.headerclass) -- @deprecated next; target .infobox-<name> .infobox-header :cssText(args.headerstyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.header, 'th')) if rowArgs.data then root:wikitext( '[[Category:Pages which use infobox templates with ignored data cells]]' ) end elseif rowArgs.data and rowArgs.data:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local row = root:tag('tr') row:addClass(rowArgs.rowclass) row:cssText(rowArgs.rowstyle) if rowArgs.label then row :tag('th') :attr('scope', 'row') :addClass('infobox-label') -- @deprecated next; target .infobox-<name> .infobox-label :cssText(args.labelstyle) :cssText(rowArgs.rowcellstyle) :wikitext(rowArgs.label) :done() end local dataCell = row:tag('td') dataCell :attr('colspan', not rowArgs.label and '2' or nil) :addClass(not rowArgs.label and 'infobox-full-data' or 'infobox-data') :addClass(rowArgs.class) -- @deprecated next; target .infobox-<name> .infobox(-full)-data :cssText(rowArgs.datastyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.data, 'td')) else table.insert(empty_row_categories, rowArgs.data or '') end end local function renderTitle() if not args.title then return end root :tag('caption') :addClass('infobox-title') :addClass(args.titleclass) -- @deprecated next; target .infobox-<name> .infobox-title :cssText(args.titlestyle) :wikitext(args.title) end local function renderAboveRow() if not args.above then return end root :tag('tr') :tag('th') :attr('colspan', '2') :addClass('infobox-above') :addClass(args.aboveclass) -- @deprecated next; target .infobox-<name> .infobox-above :cssText(args.abovestyle) :wikitext(fixChildBoxes(args.above,'th')) end local function renderBelowRow() if not args.below then return end root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-below') :addClass(args.belowclass) -- @deprecated next; target .infobox-<name> .infobox-below :cssText(args.belowstyle) :wikitext(fixChildBoxes(args.below,'td')) end local function addSubheaderRow(subheaderArgs) if subheaderArgs.data and subheaderArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then local row = root:tag('tr') row:addClass(subheaderArgs.rowclass) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-subheader') :addClass(subheaderArgs.class) :cssText(subheaderArgs.datastyle) :cssText(subheaderArgs.rowcellstyle) :wikitext(fixChildBoxes(subheaderArgs.data, 'td')) else table.insert(empty_row_categories, subheaderArgs.data or '') end end local function renderSubheaders() if args.subheader then args.subheader1 = args.subheader end if args.subheaderrowclass then args.subheaderrowclass1 = args.subheaderrowclass end local subheadernums = getArgNums('subheader') for k, num in ipairs(subheadernums) do addSubheaderRow({ data = args['subheader' .. tostring(num)], -- @deprecated next; target .infobox-<name> .infobox-subheader datastyle = args.subheaderstyle, rowcellstyle = args['subheaderstyle' .. tostring(num)], class = args.subheaderclass, rowclass = args['subheaderrowclass' .. tostring(num)] }) end end local function addImageRow(imageArgs) if imageArgs.data and imageArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then local row = root:tag('tr') row:addClass(imageArgs.rowclass) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-image') :addClass(imageArgs.class) :cssText(imageArgs.datastyle) :wikitext(fixChildBoxes(imageArgs.data, 'td')) else table.insert(empty_row_categories, imageArgs.data or '') end end local function renderImages() if args.image then args.image1 = args.image end if args.caption then args.caption1 = args.caption end local imagenums = getArgNums('image') for k, num in ipairs(imagenums) do local caption = args['caption' .. tostring(num)] local data = mw.html.create():wikitext(args['image' .. tostring(num)]) if caption then data :tag('div') :addClass('infobox-caption') -- @deprecated next; target .infobox-<name> .infobox-caption :cssText(args.captionstyle) :wikitext(caption) end addImageRow({ data = tostring(data), -- @deprecated next; target .infobox-<name> .infobox-image datastyle = args.imagestyle, class = args.imageclass, rowclass = args['imagerowclass' .. tostring(num)] }) end end -- When autoheaders are turned on, preprocesses the rows local function preprocessRows() if not args.autoheaders then return end local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) local lastheader for k, num in ipairs(rownums) do if args['header' .. tostring(num)] then if lastheader then args['header' .. tostring(lastheader)] = nil end lastheader = num elseif args['data' .. tostring(num)] and args['data' .. tostring(num)]:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local data = args['data' .. tostring(num)] if data:gsub(category_in_empty_row_pattern, ''):match('%S') then lastheader = nil end end end if lastheader then args['header' .. tostring(lastheader)] = nil end end -- Gets the union of the header and data argument numbers, -- and renders them all in order local function renderRows() local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) for k, num in ipairs(rownums) do addRow({ header = args['header' .. tostring(num)], label = args['label' .. tostring(num)], data = args['data' .. tostring(num)], datastyle = args.datastyle, class = args['class' .. tostring(num)], rowclass = args['rowclass' .. tostring(num)], -- @deprecated next; target .infobox-<name> rowclass rowstyle = args['rowstyle' .. tostring(num)], rowcellstyle = args['rowcellstyle' .. tostring(num)] }) end end local function renderNavBar() if not args.name then return end root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-navbar') :wikitext(require('Module:Navbar')._navbar{ args.name, mini = 1, }) end local function renderItalicTitle() local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title']) if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then root:wikitext(mw.getCurrentFrame():expandTemplate({title = 'italic title'})) end end -- Categories in otherwise empty rows are collected in empty_row_categories. -- This function adds them to the module output. It is not affected by -- args.decat because this module should not prevent module-external categories -- from rendering. local function renderEmptyRowCategories() for _, s in ipairs(empty_row_categories) do root:wikitext(s) end end -- Render tracking categories. args.decat == turns off tracking categories. local function renderTrackingCategories() if args.decat == 'yes' then return end if args.child == 'yes' then if args.title then root:wikitext( '[[Category:Pages which use embedded infobox templates with the title parameter]]' ) end elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then root:wikitext('[[Category:Articles which use infobox templates with no data rows]]') end end --[=[ Loads the templatestyles for the infobox. TODO: load base templatestyles here rather than in MediaWiki:Common.css We aren't doing it here yet because there are 4-5000 pages with 'raw' infobox tables. See [[Mediawiki_talk:Common.css/to_do#Infobox]] and/or come help :). When we do this we should clean up the inline CSS below too. Will have to do some bizarre conversion category like with sidebar. ]=] local function loadTemplateStyles() local frame = mw.getCurrentFrame() -- See function description -- local base_templatestyles = frame:extensionTag{ -- name = 'templatestyles', args = { src = cfg.i18n.templatestyles } -- } local templatestyles = '' if args['templatestyles'] then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['templatestyles'] } } end local child_templatestyles = '' if args['child templatestyles'] then child_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['child templatestyles'] } } end local grandchild_templatestyles = '' if args['grandchild templatestyles'] then grandchild_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['grandchild templatestyles'] } } end return table.concat({ -- base_templatestyles, -- see function description templatestyles, child_templatestyles, grandchild_templatestyles }) end -- Specify the overall layout of the infobox, with special settings if the -- infobox is used as a 'child' inside another infobox. local function _infobox() if args.child ~= 'yes' then root = mw.html.create('table') root :addClass(args.subbox == 'yes' and 'infobox-subbox' or 'infobox') :addClass(args.bodyclass) -- @deprecated next; target .infobox-<name> :cssText(args.bodystyle) renderTitle() renderAboveRow() else root = mw.html.create() root :wikitext(args.title) end renderSubheaders() renderImages() preprocessRows() renderRows() renderBelowRow() renderNavBar() renderItalicTitle() renderEmptyRowCategories() renderTrackingCategories() return loadTemplateStyles() .. tostring(root) end -- If the argument exists and isn't blank, add it to the argument table. -- Blank arguments are treated as nil to match the behaviour of ParserFunctions. local function preprocessSingleArg(argName) if origArgs[argName] and origArgs[argName] ~= '' then args[argName] = origArgs[argName] end end -- Assign the parameters with the given prefixes to the args table, in order, in -- batches of the step size specified. This is to prevent references etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix" string and a -- "depend" table. The function always parses parameters containing the "prefix" -- string, but only parses parameters in the "depend" table if the prefix -- parameter is present and non-blank. local function preprocessArgs(prefixTable, step) if type(prefixTable) ~= 'table' then error("Non-table value detected for the prefix table", 2) end if type(step) ~= 'number' then error("Invalid step value detected", 2) end -- Get arguments without a number suffix, and check for bad input. for i,v in ipairs(prefixTable) do if type(v) ~= 'table' or type(v.prefix) ~= "string" or (v.depend and type(v.depend) ~= 'table') then error('Invalid input detected to preprocessArgs prefix table', 2) end preprocessSingleArg(v.prefix) -- Only parse the depend parameter if the prefix parameter is present -- and not blank. if args[v.prefix] and v.depend then for j, dependValue in ipairs(v.depend) do if type(dependValue) ~= 'string' then error('Invalid "depend" parameter value detected in preprocessArgs') end preprocessSingleArg(dependValue) end end end -- Get arguments with number suffixes. local a = 1 -- Counter variable. local moreArgumentsExist = true while moreArgumentsExist == true do moreArgumentsExist = false for i = a, a + step - 1 do for j,v in ipairs(prefixTable) do local prefixArgName = v.prefix .. tostring(i) if origArgs[prefixArgName] then -- Do another loop if any arguments are found, even blank ones. moreArgumentsExist = true preprocessSingleArg(prefixArgName) end -- Process the depend table if the prefix argument is present -- and not blank, or we are processing "prefix1" and "prefix" is -- present and not blank, and if the depend table is present. if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then for j,dependValue in ipairs(v.depend) do local dependArgName = dependValue .. tostring(i) preprocessSingleArg(dependArgName) end end end end a = a + step end end -- Parse the data parameters in the same order that the old {{infobox}} did, so -- that references etc. will display in the expected places. Parameters that -- depend on another parameter are only processed if that parameter is present, -- to avoid phantom references appearing in article reference lists. local function parseDataParameters() preprocessSingleArg('autoheaders') preprocessSingleArg('child') preprocessSingleArg('bodyclass') preprocessSingleArg('subbox') preprocessSingleArg('bodystyle') preprocessSingleArg('title') preprocessSingleArg('titleclass') preprocessSingleArg('titlestyle') preprocessSingleArg('above') preprocessSingleArg('aboveclass') preprocessSingleArg('abovestyle') preprocessArgs({ {prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}} }, 10) preprocessSingleArg('subheaderstyle') preprocessSingleArg('subheaderclass') preprocessArgs({ {prefix = 'image', depend = {'caption', 'imagerowclass'}} }, 10) preprocessSingleArg('captionstyle') preprocessSingleArg('imagestyle') preprocessSingleArg('imageclass') preprocessArgs({ {prefix = 'header'}, {prefix = 'data', depend = {'label'}}, {prefix = 'rowclass'}, {prefix = 'rowstyle'}, {prefix = 'rowcellstyle'}, {prefix = 'class'} }, 50) preprocessSingleArg('headerclass') preprocessSingleArg('headerstyle') preprocessSingleArg('labelstyle') preprocessSingleArg('datastyle') preprocessSingleArg('below') preprocessSingleArg('belowclass') preprocessSingleArg('belowstyle') preprocessSingleArg('name') -- different behaviour for italics if blank or absent args['italic title'] = origArgs['italic title'] preprocessSingleArg('decat') preprocessSingleArg('templatestyles') preprocessSingleArg('child templatestyles') preprocessSingleArg('grandchild templatestyles') end -- If called via #invoke, use the args passed into the invoking template. -- Otherwise, for testing purposes, assume args are being passed directly in. function p.infobox(frame) if frame == mw.getCurrentFrame() then origArgs = frame:getParent().args else origArgs = frame end parseDataParameters() return _infobox() end -- For calling via #invoke within a template function p.infoboxTemplate(frame) origArgs = {} for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end parseDataParameters() return _infobox() end return p 78a5aca30653178a57174938c358e88ef9255cba 86 84 2021-06-24T03:47:24Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain local p = {} local args = {} local origArgs = {} local root local empty_row_categories = {} local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]' local function fixChildBoxes(sval, tt) local function notempty( s ) return s and s:match( '%S' ) end if notempty(sval) then local marker = '<span class=special_infobox_marker>' local s = sval s = mw.ustring.gsub(s, '(<%s*[Tt][Rr])', marker .. '%1') s = mw.ustring.gsub(s, '(</[Tt][Rr]%s*>)', '%1' .. marker) if s:match(marker) then s = mw.ustring.gsub(s, marker .. '%s*' .. marker, '') s = mw.ustring.gsub(s, '([\r\n]|-[^\r\n]*[\r\n])%s*' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '%s*([\r\n]|-)', '%1') s = mw.ustring.gsub(s, '(</[Cc][Aa][Pp][Tt][Ii][Oo][Nn]%s*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '(<%s*[Tt][Aa][Bb][Ll][Ee][^<>]*>%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '^(%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, '([\r\n]%{|[^\r\n]*[\r\n]%s*)' .. marker, '%1') s = mw.ustring.gsub(s, marker .. '(%s*</[Tt][Aa][Bb][Ll][Ee]%s*>)', '%1') s = mw.ustring.gsub(s, marker .. '(%s*\n|%})', '%1') end if s:match(marker) then local subcells = mw.text.split(s, marker) s = '' for k = 1, #subcells do if k == 1 then s = s .. subcells[k] .. '</' .. tt .. '></tr>' elseif k == #subcells then local rowstyle = ' style="display:none"' if notempty(subcells[k]) then rowstyle = '' end s = s .. '<tr' .. rowstyle ..'><' .. tt .. ' colspan=2>\n' .. subcells[k] elseif notempty(subcells[k]) then if (k % 2) == 0 then s = s .. subcells[k] else s = s .. '<tr><' .. tt .. ' colspan=2>\n' .. subcells[k] .. '</' .. tt .. '></tr>' end end end end -- the next two lines add a newline at the end of lists for the PHP parser -- [[Special:Diff/849054481]] -- remove when [[:phab:T191516]] is fixed or OBE s = mw.ustring.gsub(s, '([\r\n][%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:][^\r\n]*)$', '%1\n') s = mw.ustring.gsub(s, '^([%*#;:])', '\n%1') s = mw.ustring.gsub(s, '^(%{%|)', '\n%1') return s else return sval end end -- Returns the union of the values of two tables, as a sequence. local function union(t1, t2) local vals = {} for k, v in pairs(t1) do vals[v] = true end for k, v in pairs(t2) do vals[v] = true end local ret = {} for k, v in pairs(vals) do table.insert(ret, k) end return ret end -- Returns a table containing the numbers of the arguments that exist -- for the specified prefix. For example, if the prefix was 'data', and -- 'data1', 'data2', and 'data5' exist, it would return {1, 2, 5}. local function getArgNums(prefix) local nums = {} for k, v in pairs(args) do local num = tostring(k):match('^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -- Adds a row to the infobox, with either a header cell -- or a label/data cell combination. local function addRow(rowArgs) if rowArgs.header and rowArgs.header ~= '_BLANK_' then root :tag('tr') :addClass(rowArgs.rowclass) :cssText(rowArgs.rowstyle) :tag('th') :attr('colspan', '2') :addClass('infobox-header') :addClass(rowArgs.class) :addClass(args.headerclass) -- @deprecated next; target .infobox-<name> .infobox-header :cssText(args.headerstyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.header, 'th')) if rowArgs.data then root:wikitext( '[[Category:Pages which use infobox templates with ignored data cells]]' ) end elseif rowArgs.data and rowArgs.data:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local row = root:tag('tr') row:addClass(rowArgs.rowclass) row:cssText(rowArgs.rowstyle) if rowArgs.label then row :tag('th') :attr('scope', 'row') :addClass('infobox-label') -- @deprecated next; target .infobox-<name> .infobox-label :cssText(args.labelstyle) :cssText(rowArgs.rowcellstyle) :wikitext(rowArgs.label) :done() end local dataCell = row:tag('td') dataCell :attr('colspan', not rowArgs.label and '2' or nil) :addClass(not rowArgs.label and 'infobox-full-data' or 'infobox-data') :addClass(rowArgs.class) -- @deprecated next; target .infobox-<name> .infobox(-full)-data :cssText(rowArgs.datastyle) :cssText(rowArgs.rowcellstyle) :wikitext(fixChildBoxes(rowArgs.data, 'td')) else table.insert(empty_row_categories, rowArgs.data or '') end end local function renderTitle() if not args.title then return end root :tag('caption') :addClass('infobox-title') :addClass(args.titleclass) -- @deprecated next; target .infobox-<name> .infobox-title :cssText(args.titlestyle) :wikitext(args.title) end local function renderAboveRow() if not args.above then return end root :tag('tr') :tag('th') :attr('colspan', '2') :addClass('infobox-above') :addClass(args.aboveclass) -- @deprecated next; target .infobox-<name> .infobox-above :cssText(args.abovestyle) :wikitext(fixChildBoxes(args.above,'th')) end local function renderBelowRow() if not args.below then return end root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-below') :addClass(args.belowclass) -- @deprecated next; target .infobox-<name> .infobox-below :cssText(args.belowstyle) :wikitext(fixChildBoxes(args.below,'td')) end local function addSubheaderRow(subheaderArgs) if subheaderArgs.data and subheaderArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then local row = root:tag('tr') row:addClass(subheaderArgs.rowclass) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-subheader') :addClass(subheaderArgs.class) :cssText(subheaderArgs.datastyle) :cssText(subheaderArgs.rowcellstyle) :wikitext(fixChildBoxes(subheaderArgs.data, 'td')) else table.insert(empty_row_categories, subheaderArgs.data or '') end end local function renderSubheaders() if args.subheader then args.subheader1 = args.subheader end if args.subheaderrowclass then args.subheaderrowclass1 = args.subheaderrowclass end local subheadernums = getArgNums('subheader') for k, num in ipairs(subheadernums) do addSubheaderRow({ data = args['subheader' .. tostring(num)], -- @deprecated next; target .infobox-<name> .infobox-subheader datastyle = args.subheaderstyle, rowcellstyle = args['subheaderstyle' .. tostring(num)], class = args.subheaderclass, rowclass = args['subheaderrowclass' .. tostring(num)] }) end end local function addImageRow(imageArgs) if imageArgs.data and imageArgs.data:gsub(category_in_empty_row_pattern, ''):match('^%S') then local row = root:tag('tr') row:addClass(imageArgs.rowclass) local dataCell = row:tag('td') dataCell :attr('colspan', '2') :addClass('infobox-image') :addClass(imageArgs.class) :cssText(imageArgs.datastyle) :wikitext(fixChildBoxes(imageArgs.data, 'td')) else table.insert(empty_row_categories, imageArgs.data or '') end end local function renderImages() if args.image then args.image1 = args.image end if args.caption then args.caption1 = args.caption end local imagenums = getArgNums('image') for k, num in ipairs(imagenums) do local caption = args['caption' .. tostring(num)] local data = mw.html.create():wikitext(args['image' .. tostring(num)]) if caption then data :tag('div') :addClass('infobox-caption') -- @deprecated next; target .infobox-<name> .infobox-caption :cssText(args.captionstyle) :wikitext(caption) end addImageRow({ data = tostring(data), -- @deprecated next; target .infobox-<name> .infobox-image datastyle = args.imagestyle, class = args.imageclass, rowclass = args['imagerowclass' .. tostring(num)] }) end end -- When autoheaders are turned on, preprocesses the rows local function preprocessRows() if not args.autoheaders then return end local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) local lastheader for k, num in ipairs(rownums) do if args['header' .. tostring(num)] then if lastheader then args['header' .. tostring(lastheader)] = nil end lastheader = num elseif args['data' .. tostring(num)] and args['data' .. tostring(num)]:gsub( category_in_empty_row_pattern, '' ):match('^%S') then local data = args['data' .. tostring(num)] if data:gsub(category_in_empty_row_pattern, ''):match('%S') then lastheader = nil end end end if lastheader then args['header' .. tostring(lastheader)] = nil end end -- Gets the union of the header and data argument numbers, -- and renders them all in order local function renderRows() local rownums = union(getArgNums('header'), getArgNums('data')) table.sort(rownums) for k, num in ipairs(rownums) do addRow({ header = args['header' .. tostring(num)], label = args['label' .. tostring(num)], data = args['data' .. tostring(num)], datastyle = args.datastyle, class = args['class' .. tostring(num)], rowclass = args['rowclass' .. tostring(num)], -- @deprecated next; target .infobox-<name> rowclass rowstyle = args['rowstyle' .. tostring(num)], rowcellstyle = args['rowcellstyle' .. tostring(num)] }) end end local function renderNavBar() if not args.name then return end root :tag('tr') :tag('td') :attr('colspan', '2') :addClass('infobox-navbar') :wikitext(require('Module:Navbar')._navbar{ args.name, mini = 1, }) end local function renderItalicTitle() local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title']) if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then root:wikitext(mw.getCurrentFrame():expandTemplate({title = 'italic title'})) end end -- Categories in otherwise empty rows are collected in empty_row_categories. -- This function adds them to the module output. It is not affected by -- args.decat because this module should not prevent module-external categories -- from rendering. local function renderEmptyRowCategories() for _, s in ipairs(empty_row_categories) do root:wikitext(s) end end -- Render tracking categories. args.decat == turns off tracking categories. local function renderTrackingCategories() if args.decat == 'yes' then return end if args.child == 'yes' then if args.title then root:wikitext( '[[Category:Pages which use embedded infobox templates with the title parameter]]' ) end elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then root:wikitext('[[Category:Articles which use infobox templates with no data rows]]') end end --[=[ Loads the templatestyles for the infobox. TODO: load base templatestyles here rather than in MediaWiki:Common.css We aren't doing it here yet because there are 4-5000 pages with 'raw' infobox tables. See [[Mediawiki_talk:Common.css/to_do#Infobox]] and/or come help :). When we do this we should clean up the inline CSS below too. Will have to do some bizarre conversion category like with sidebar. ]=] local function loadTemplateStyles() local frame = mw.getCurrentFrame() -- See function description -- local base_templatestyles = frame:extensionTag{ -- name = 'templatestyles', args = { src = cfg.i18n.templatestyles } -- } local templatestyles = '' if args['templatestyles'] then templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['templatestyles'] } } end local child_templatestyles = '' if args['child templatestyles'] then child_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['child templatestyles'] } } end local grandchild_templatestyles = '' if args['grandchild templatestyles'] then grandchild_templatestyles = frame:extensionTag{ name = 'templatestyles', args = { src = args['grandchild templatestyles'] } } end return table.concat({ -- base_templatestyles, -- see function description templatestyles, child_templatestyles, grandchild_templatestyles }) end -- Specify the overall layout of the infobox, with special settings if the -- infobox is used as a 'child' inside another infobox. local function _infobox() if args.child ~= 'yes' then root = mw.html.create('table') root :addClass(args.subbox == 'yes' and 'infobox-subbox' or 'infobox') :addClass(args.bodyclass) -- @deprecated next; target .infobox-<name> :cssText(args.bodystyle) renderTitle() renderAboveRow() else root = mw.html.create() root :wikitext(args.title) end renderSubheaders() renderImages() preprocessRows() renderRows() renderBelowRow() renderNavBar() renderItalicTitle() renderEmptyRowCategories() renderTrackingCategories() return loadTemplateStyles() .. tostring(root) end -- If the argument exists and isn't blank, add it to the argument table. -- Blank arguments are treated as nil to match the behaviour of ParserFunctions. local function preprocessSingleArg(argName) if origArgs[argName] and origArgs[argName] ~= '' then args[argName] = origArgs[argName] end end -- Assign the parameters with the given prefixes to the args table, in order, in -- batches of the step size specified. This is to prevent references etc. from -- appearing in the wrong order. The prefixTable should be an array containing -- tables, each of which has two possible fields, a "prefix" string and a -- "depend" table. The function always parses parameters containing the "prefix" -- string, but only parses parameters in the "depend" table if the prefix -- parameter is present and non-blank. local function preprocessArgs(prefixTable, step) if type(prefixTable) ~= 'table' then error("Non-table value detected for the prefix table", 2) end if type(step) ~= 'number' then error("Invalid step value detected", 2) end -- Get arguments without a number suffix, and check for bad input. for i,v in ipairs(prefixTable) do if type(v) ~= 'table' or type(v.prefix) ~= "string" or (v.depend and type(v.depend) ~= 'table') then error('Invalid input detected to preprocessArgs prefix table', 2) end preprocessSingleArg(v.prefix) -- Only parse the depend parameter if the prefix parameter is present -- and not blank. if args[v.prefix] and v.depend then for j, dependValue in ipairs(v.depend) do if type(dependValue) ~= 'string' then error('Invalid "depend" parameter value detected in preprocessArgs') end preprocessSingleArg(dependValue) end end end -- Get arguments with number suffixes. local a = 1 -- Counter variable. local moreArgumentsExist = true while moreArgumentsExist == true do moreArgumentsExist = false for i = a, a + step - 1 do for j,v in ipairs(prefixTable) do local prefixArgName = v.prefix .. tostring(i) if origArgs[prefixArgName] then -- Do another loop if any arguments are found, even blank ones. moreArgumentsExist = true preprocessSingleArg(prefixArgName) end -- Process the depend table if the prefix argument is present -- and not blank, or we are processing "prefix1" and "prefix" is -- present and not blank, and if the depend table is present. if v.depend and (args[prefixArgName] or (i == 1 and args[v.prefix])) then for j,dependValue in ipairs(v.depend) do local dependArgName = dependValue .. tostring(i) preprocessSingleArg(dependArgName) end end end end a = a + step end end -- Parse the data parameters in the same order that the old {{infobox}} did, so -- that references etc. will display in the expected places. Parameters that -- depend on another parameter are only processed if that parameter is present, -- to avoid phantom references appearing in article reference lists. local function parseDataParameters() preprocessSingleArg('autoheaders') preprocessSingleArg('child') preprocessSingleArg('bodyclass') preprocessSingleArg('subbox') preprocessSingleArg('bodystyle') preprocessSingleArg('title') preprocessSingleArg('titleclass') preprocessSingleArg('titlestyle') preprocessSingleArg('above') preprocessSingleArg('aboveclass') preprocessSingleArg('abovestyle') preprocessArgs({ {prefix = 'subheader', depend = {'subheaderstyle', 'subheaderrowclass'}} }, 10) preprocessSingleArg('subheaderstyle') preprocessSingleArg('subheaderclass') preprocessArgs({ {prefix = 'image', depend = {'caption', 'imagerowclass'}} }, 10) preprocessSingleArg('captionstyle') preprocessSingleArg('imagestyle') preprocessSingleArg('imageclass') preprocessArgs({ {prefix = 'header'}, {prefix = 'data', depend = {'label'}}, {prefix = 'rowclass'}, {prefix = 'rowstyle'}, {prefix = 'rowcellstyle'}, {prefix = 'class'} }, 50) preprocessSingleArg('headerclass') preprocessSingleArg('headerstyle') preprocessSingleArg('labelstyle') preprocessSingleArg('datastyle') preprocessSingleArg('below') preprocessSingleArg('belowclass') preprocessSingleArg('belowstyle') preprocessSingleArg('name') -- different behaviour for italics if blank or absent args['italic title'] = origArgs['italic title'] preprocessSingleArg('decat') preprocessSingleArg('templatestyles') preprocessSingleArg('child templatestyles') preprocessSingleArg('grandchild templatestyles') end -- If called via #invoke, use the args passed into the invoking template. -- Otherwise, for testing purposes, assume args are being passed directly in. function p.infobox(frame) if frame == mw.getCurrentFrame() then origArgs = frame:getParent().args else origArgs = frame end parseDataParameters() return _infobox() end -- For calling via #invoke within a template function p.infoboxTemplate(frame) origArgs = {} for k,v in pairs(frame.args) do origArgs[k] = mw.text.trim(v) end parseDataParameters() return _infobox() end return p 78a5aca30653178a57174938c358e88ef9255cba Module:Category link with count 828 42 88 87 2021-06-24T03:47:25Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki [[:Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|<!-- -->{{#if:{{{name|}}}|{{{name}}}|Category:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}}}<!-- -->]]&nbsp;({{PAGESINCATEGORY:{{#invoke:string|replace|1={{{1}}}|2=^:?[Cc]ategory:|3=|plain=false}}|{{{2|all}}}}})<noinclude> {{Documentation}} </noinclude> f93f1540b8c157703bd6d24ae35c35bef745981d Module:Clc 828 43 90 89 2021-06-24T03:47:25Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki #REDIRECT [[Template:Category link with count]] 02280e2ab57b544236e11f913e3759c5781ca9d5 Module:High-use 828 44 92 91 2021-06-24T03:47:26Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#invoke:High-use|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|system={{{system|}}}}}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --> </noinclude> dc5ea36aa88cf409e3280bf65dbfc2566faffe29 120 92 2021-06-24T03:47:33Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#invoke:High-use|main|1={{{1|}}}|2={{{2|}}}|all-pages={{{all-pages|}}}|info={{{info|}}}|demo={{{demo|}}}|form={{{form|}}}|expiry={{{expiry|}}}|system={{{system|}}}}}<noinclude> {{Documentation}} <!-- Add categories to the /doc subpage; interwiki links go to Wikidata, thank you! --> </noinclude> dc5ea36aa88cf409e3280bf65dbfc2566faffe29 Module:Lua 828 45 94 93 2021-06-24T03:47:26Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly>{{#invoke:Lua banner|main}}</includeonly><noinclude> {{Lua|Module:Lua banner}} {{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> dba3962144dacd289dbc34f50fbe0a7bf6d7f2f7 Module:Module other 828 46 96 95 2021-06-24T03:47:26Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#switch: <!--If no or empty "demospace" parameter then detect namespace--> {{#if:{{{demospace|}}} | {{lc: {{{demospace}}} }} <!--Use lower case "demospace"--> | {{#ifeq:{{NAMESPACE}}|{{ns:Module}} | module | other }} }} | module = {{{1|}}} | other | #default = {{{2|}}} }}<!--End switch--><noinclude> {{documentation}} <!-- Add categories to the /doc subpage, not here! --> </noinclude> 503694836c1b07142e63fd35d8be69ec8bb9ffe7 Module:Module rating 828 47 98 97 2021-06-24T03:47:27Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki <includeonly>{{Module other|{{ombox | type = notice | image = {{#switch: {{{1|}}} | pre-alpha | prealpha | pa = [[File:Ambox warning blue construction.svg|40x40px|link=|alt=Pre-alpha]] | alpha | a = [[File:Alpha lowercase.svg|26x26px|link=|alt=Alpha]] | beta | b = [[File:Greek lc beta.svg|40x40px|link=|alt=Beta]] | release | r | general | g = [[File:Green check.svg|40x40px|link=|alt=Ready for use]] | protected | protect | p = [[File:{{#switch:{{#invoke:Effective protection level|edit|{{#switch:{{SUBPAGENAME}}|doc|sandbox={{FULLBASEPAGENAME}}|{{FULLPAGENAME}}}}}}|autoconfirmed=Semi|extendedconfirmed=Extended|accountcreator|templateeditor=Template|#default=Full}}-protection-shackle.svg|40x40px|link=|alt=Protected]] | semiprotected | semiprotect | semi =[[File:Semi-protection-shackle.svg|40x40px|link=|alt=Semi-protected]] }} | style = | textstyle = | text = {{#switch: {{{1|}}} | pre-alpha | prealpha | pa = This module is rated as [[:Category:Modules in pre-alpha development|pre-alpha]]. It is unfinished, and may or may not be in active development. It should not be used from article namespace pages. Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules in pre-alpha development|{{PAGENAME}}]] }} }} | alpha | a = This module is rated as [[:Category:Modules in alpha|alpha]]. It is ready for third-party input, and may be used on a few pages to see if problems arise, but should be watched. Suggestions for new features or changes in their input and output mechanisms are welcome.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules in alpha|{{PAGENAME}}]] }} }} | beta | b = This module is rated as [[:Category:Modules in beta|beta]], and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules in beta|{{PAGENAME}}]] }} }} | release | r | general | g = This module is rated as [[:Category:Modules for general use|ready for general use]]. It has reached a mature form and is thought to be relatively bug-free and ready for use wherever appropriate. It is ready to mention on help pages and other Wikipedia resources as an option for new users to learn. To reduce server load and bad output, it should be improved by [[Wikipedia:Template sandbox and test cases|sandbox testing]] rather than repeated trial-and-error editing.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules for general use|{{PAGENAME}}]] }} }} | protected | protect | p = This module is [[:Category:Modules subject to page protection|subject to page protection]]. It is a [[Wikipedia:High-risk templates|highly visible module]] in use by a very large number of pages, or is [[Wikipedia:Substitution|substituted]] very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[Wikipedia:Protection policy|protected]] from editing.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules subject to page protection|{{PAGENAME}}]] }} }} | semiprotected | semiprotect | semi = This module is [[:Category:Modules subject to page protection|subject to page protection]]. It is a [[Wikipedia:High-risk templates|highly visible module]] in use by a very large number of pages, or is [[Wikipedia:Substitution|substituted]] very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is [[WP:SEMI|semi-protected]] from editing.<!-- -->{{#switch: {{SUBPAGENAME}}|doc|sandbox=<!-- No category for /doc or /sandbox subpages --> | {{#ifeq: {{{nocat|}}} | true | <!-- No category if user sets nocat=true --> | [[Category:Modules subject to page protection|{{PAGENAME}}]] }} }} | #default = {{error|Module rating is invalid or not specified.}} }} }}|{{error|Error: {{tl|Module rating}} must be placed in the Module namespace.}} [[Category:Pages with templates in the wrong namespace]]|demospace={{{demospace|<noinclude>module</noinclude>}}}}}</includeonly><noinclude> {{module rating|release|nocat=true|demospace=module}} {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go in Wikidata. --> </noinclude> fa09f5dfdee6e8f216e15aaabf83f4fc95a94ff6 Module:Ombox 828 48 100 99 2021-06-24T03:47:27Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{#invoke:Message box|ombox}}<noinclude> {{documentation}} <!-- Categories go on the /doc subpage, and interwikis go on Wikidata. --> </noinclude> 0e54065432d540737b9e56c4e3a8e7f74d4534ea Module:Template link 828 49 102 101 2021-06-24T03:47:28Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki &#123;&#123;[[Template:{{{1}}}|{{{1}}}]]&#125;&#125;<noinclude>{{documentation}} <!-- Categories go on the /doc subpage and interwikis go on Wikidata. --> </noinclude> eabbec62efe3044a98ebb3ce9e7d4d43c222351d Module:Tl 828 50 104 103 2021-06-24T03:47:28Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki #REDIRECT [[Template:Template link]] {{Redirect category shell| {{R from move}} }} d6593bb3b4a866249f55d0f34b047a71fe1f1529 Module:Arguments 828 51 106 105 2021-06-24T03:47:28Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -- This module provides easy processing of arguments passed to Scribunto from -- #invoke. It is intended for use by other Lua modules, and should not be -- called from #invoke directly. local libraryUtil = require('libraryUtil') local checkType = libraryUtil.checkType local arguments = {} -- Generate four different tidyVal functions, so that we don't have to check the -- options every time we call it. local function tidyValDefault(key, val) if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val == '' then return nil else return val end else return val end end local function tidyValTrimOnly(key, val) if type(val) == 'string' then return val:match('^%s*(.-)%s*$') else return val end end local function tidyValRemoveBlanksOnly(key, val) if type(val) == 'string' then if val:find('%S') then return val else return nil end else return val end end local function tidyValNoChange(key, val) return val end local function matchesTitle(given, title) local tp = type( given ) return (tp == 'string' or tp == 'number') and mw.title.new( given ).prefixedText == title end local translate_mt = { __index = function(t, k) return k end } function arguments.getArgs(frame, options) checkType('getArgs', 1, frame, 'table', true) checkType('getArgs', 2, options, 'table', true) frame = frame or {} options = options or {} --[[ -- Set up argument translation. --]] options.translate = options.translate or {} if getmetatable(options.translate) == nil then setmetatable(options.translate, translate_mt) end if options.backtranslate == nil then options.backtranslate = {} for k,v in pairs(options.translate) do options.backtranslate[v] = k end end if options.backtranslate and getmetatable(options.backtranslate) == nil then setmetatable(options.backtranslate, { __index = function(t, k) if options.translate[k] ~= k then return nil else return k end end }) end --[[ -- Get the argument tables. If we were passed a valid frame object, get the -- frame arguments (fargs) and the parent frame arguments (pargs), depending -- on the options set and on the parent frame's availability. If we weren't -- passed a valid frame object, we are being called from another Lua module -- or from the debug console, so assume that we were passed a table of args -- directly, and assign it to a new variable (luaArgs). --]] local fargs, pargs, luaArgs if type(frame.args) == 'table' and type(frame.getParent) == 'function' then if options.wrappers then --[[ -- The wrappers option makes Module:Arguments look up arguments in -- either the frame argument table or the parent argument table, but -- not both. This means that users can use either the #invoke syntax -- or a wrapper template without the loss of performance associated -- with looking arguments up in both the frame and the parent frame. -- Module:Arguments will look up arguments in the parent frame -- if it finds the parent frame's title in options.wrapper; -- otherwise it will look up arguments in the frame object passed -- to getArgs. --]] local parent = frame:getParent() if not parent then fargs = frame.args else local title = parent:getTitle():gsub('/sandbox$', '') local found = false if matchesTitle(options.wrappers, title) then found = true elseif type(options.wrappers) == 'table' then for _,v in pairs(options.wrappers) do if matchesTitle(v, title) then found = true break end end end -- We test for false specifically here so that nil (the default) acts like true. if found or options.frameOnly == false then pargs = parent.args end if not found or options.parentOnly == false then fargs = frame.args end end else -- options.wrapper isn't set, so check the other options. if not options.parentOnly then fargs = frame.args end if not options.frameOnly then local parent = frame:getParent() pargs = parent and parent.args or nil end end if options.parentFirst then fargs, pargs = pargs, fargs end else luaArgs = frame end -- Set the order of precedence of the argument tables. If the variables are -- nil, nothing will be added to the table, which is how we avoid clashes -- between the frame/parent args and the Lua args. local argTables = {fargs} argTables[#argTables + 1] = pargs argTables[#argTables + 1] = luaArgs --[[ -- Generate the tidyVal function. If it has been specified by the user, we -- use that; if not, we choose one of four functions depending on the -- options chosen. This is so that we don't have to call the options table -- every time the function is called. --]] local tidyVal = options.valueFunc if tidyVal then if type(tidyVal) ~= 'function' then error( "bad value assigned to option 'valueFunc'" .. '(function expected, got ' .. type(tidyVal) .. ')', 2 ) end elseif options.trim ~= false then if options.removeBlanks ~= false then tidyVal = tidyValDefault else tidyVal = tidyValTrimOnly end else if options.removeBlanks ~= false then tidyVal = tidyValRemoveBlanksOnly else tidyVal = tidyValNoChange end end --[[ -- Set up the args, metaArgs and nilArgs tables. args will be the one -- accessed from functions, and metaArgs will hold the actual arguments. Nil -- arguments are memoized in nilArgs, and the metatable connects all of them -- together. --]] local args, metaArgs, nilArgs, metatable = {}, {}, {}, {} setmetatable(args, metatable) local function mergeArgs(tables) --[[ -- Accepts multiple tables as input and merges their keys and values -- into one table. If a value is already present it is not overwritten; -- tables listed earlier have precedence. We are also memoizing nil -- values, which can be overwritten if they are 's' (soft). --]] for _, t in ipairs(tables) do for key, val in pairs(t) do if metaArgs[key] == nil and nilArgs[key] ~= 'h' then local tidiedVal = tidyVal(key, val) if tidiedVal == nil then nilArgs[key] = 's' else metaArgs[key] = tidiedVal end end end end end --[[ -- Define metatable behaviour. Arguments are memoized in the metaArgs table, -- and are only fetched from the argument tables once. Fetching arguments -- from the argument tables is the most resource-intensive step in this -- module, so we try and avoid it where possible. For this reason, nil -- arguments are also memoized, in the nilArgs table. Also, we keep a record -- in the metatable of when pairs and ipairs have been called, so we do not -- run pairs and ipairs on the argument tables more than once. We also do -- not run ipairs on fargs and pargs if pairs has already been run, as all -- the arguments will already have been copied over. --]] metatable.__index = function (t, key) --[[ -- Fetches an argument when the args table is indexed. First we check -- to see if the value is memoized, and if not we try and fetch it from -- the argument tables. When we check memoization, we need to check -- metaArgs before nilArgs, as both can be non-nil at the same time. -- If the argument is not present in metaArgs, we also check whether -- pairs has been run yet. If pairs has already been run, we return nil. -- This is because all the arguments will have already been copied into -- metaArgs by the mergeArgs function, meaning that any other arguments -- must be nil. --]] if type(key) == 'string' then key = options.translate[key] end local val = metaArgs[key] if val ~= nil then return val elseif metatable.donePairs or nilArgs[key] then return nil end for _, argTable in ipairs(argTables) do local argTableVal = tidyVal(key, argTable[key]) if argTableVal ~= nil then metaArgs[key] = argTableVal return argTableVal end end nilArgs[key] = 'h' return nil end metatable.__newindex = function (t, key, val) -- This function is called when a module tries to add a new value to the -- args table, or tries to change an existing value. if type(key) == 'string' then key = options.translate[key] end if options.readOnly then error( 'could not write to argument table key "' .. tostring(key) .. '"; the table is read-only', 2 ) elseif options.noOverwrite and args[key] ~= nil then error( 'could not write to argument table key "' .. tostring(key) .. '"; overwriting existing arguments is not permitted', 2 ) elseif val == nil then --[[ -- If the argument is to be overwritten with nil, we need to erase -- the value in metaArgs, so that __index, __pairs and __ipairs do -- not use a previous existing value, if present; and we also need -- to memoize the nil in nilArgs, so that the value isn't looked -- up in the argument tables if it is accessed again. --]] metaArgs[key] = nil nilArgs[key] = 'h' else metaArgs[key] = val end end local function translatenext(invariant) local k, v = next(invariant.t, invariant.k) invariant.k = k if k == nil then return nil elseif type(k) ~= 'string' or not options.backtranslate then return k, v else local backtranslate = options.backtranslate[k] if backtranslate == nil then -- Skip this one. This is a tail call, so this won't cause stack overflow return translatenext(invariant) else return backtranslate, v end end end metatable.__pairs = function () -- Called when pairs is run on the args table. if not metatable.donePairs then mergeArgs(argTables) metatable.donePairs = true end return translatenext, { t = metaArgs } end local function inext(t, i) -- This uses our __index metamethod local v = t[i + 1] if v ~= nil then return i + 1, v end end metatable.__ipairs = function (t) -- Called when ipairs is run on the args table. return inext, t, 0 end return args end return arguments 3134ecce8429b810d445e29eae115e2ae4c36c53 Module:Documentation 828 52 108 107 2021-06-24T03:47:29Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return mw.ustring.format('[[%s|%s]]', page, display) else return mw.ustring.format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return mw.ustring.format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return '<span class="' .. message('toolbar-class') .. '">(' .. table.concat(ret, ' &#124; ') .. ')</span>' end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- env.printTitle - the print version of the template, located at the /Print subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.printTitle() --[[ -- Title object for the /Print subpage. -- Messages: -- 'print-subpage' --> 'Print' --]] return env.templateTitle:subPageTitle(message('print-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.fullUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[Image:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '' local pagetype if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') else pagetype = message('sandbox-notice-pagetype-other') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(message('sandbox-category')) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'file-docpage-preload' --> 'Template:Documentation/preload-filespace' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end local data = {} data.title = title data.docTitle = docTitle -- View, display, edit, and purge links if /doc exists. data.viewLinkDisplay = message('view-link-display') data.editLinkDisplay = message('edit-link-display') data.historyLinkDisplay = message('history-link-display') data.purgeLinkDisplay = message('purge-link-display') -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 6 then -- File namespace preload = message('file-docpage-preload') elseif subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end data.preload = preload data.createLinkDisplay = message('create-link-display') return data end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local function escapeBrackets(s) -- Escapes square brackets with HTML entities. s = s:gsub('%[', '&#91;') -- Replace square brackets with HTML entities. s = s:gsub('%]', '&#93;') return s end local ret local docTitle = data.docTitle local title = data.title if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeUrlLink(docTitle:fullUrl{action = 'edit'}, data.editLinkDisplay) local historyLink = makeUrlLink(docTitle:fullUrl{action = 'history'}, data.historyLinkDisplay) local purgeLink = makeUrlLink(title:fullUrl{action = 'purge'}, data.purgeLinkDisplay) ret = '[%s] [%s] [%s] [%s]' ret = escapeBrackets(ret) ret = mw.ustring.format(ret, viewLink, editLink, historyLink, purgeLink) else local createLink = makeUrlLink(docTitle:fullUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) ret = '[%s]' ret = escapeBrackets(ret) ret = mw.ustring.format(ret, createLink) end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" local printBlurb = p.makePrintBlurb(args, env) -- Two-line blurb about print versions of templates. if printBlurb then text = text .. '<br />' .. printBlurb end end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end local ret if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editUrl = docTitle:fullUrl{action = 'edit'} local editDisplay = message('edit-link-display') local editLink = makeUrlLink(editUrl, editDisplay) local historyUrl = docTitle:fullUrl{action = 'history'} local historyDisplay = message('history-link-display') local historyLink = makeUrlLink(historyUrl, historyDisplay) ret = message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:fullUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) ret = message('create-module-doc-blurb', {createLink}) .. '<br />' end return ret end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditUrl = sandboxTitle:fullUrl{action = 'edit'} local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeUrlLink(sandboxEditUrl, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:fullUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:fullUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:fullUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:fullUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeUrlLink(testcasesEditUrl, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:fullUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end function p.makePrintBlurb(args, env) --[=[ -- Generates the blurb displayed when there is a print version of the template available. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'print-link-display' --> '/Print' -- 'print-blurb' --> 'A [[Help:Books/for experts#Improving the book layout|print version]]' -- .. ' of this template exists at $1.' -- .. ' If you make a change to this template, please update the print version as well.' -- 'display-print-category' --> true -- 'print-category' --> 'Templates with print versions' --]=] local printTitle = env.printTitle if not printTitle then return nil end local ret if printTitle.exists then local printLink = makeWikilink(printTitle.prefixedText, message('print-link-display')) ret = message('print-blurb', {printLink}) local displayPrintCategory = message('display-print-category', nil, 'boolean') if displayPrintCategory then ret = ret .. makeCategoryLink(message('print-category')) end end return ret end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText local ret = '' if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then ret = ret .. makeCategoryLink(message('strange-usage-category')) end return ret end return p e83fdbf15868a3649a3fca55a29da23416566f02 Module:Documentation/config 828 53 110 109 2021-06-24T03:47:29Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Sandbox.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] -- A category to add to all template sandboxes. cfg['sandbox-category'] = 'Template sandboxes' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'edit' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'history' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'The above [[Wikipedia:Template documentation|documentation]] is [[Wikipedia:Transclusion|transcluded]] from $1.' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "Editors can experiment in this template's $1 and $2 pages." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'edit' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'create' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'mirror' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'edit' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'Please add categories to the $1 subpage.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/doc' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'Subpages of this $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'doc' -- cfg['file-docpage-preload'] -- Preload file for documentation page in the file namespace. cfg['file-docpage-preload'] = 'Template:Documentation/preload-filespace' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- Print version configuration ---------------------------------------------------------------------------------------------------- -- cfg['print-subpage'] -- The name of the template subpage used for print versions. cfg['print-subpage'] = 'Print' -- cfg['print-link-display'] -- The text to display when linking to the /Print subpage. cfg['print-link-display'] = '/Print' -- cfg['print-blurb'] -- Text to display if a /Print subpage exists. $1 is a link to the subpage with -- a display value of cfg['print-link-display']. cfg['print-blurb'] = 'A [[Help:Books/for experts#Improving the book layout|print version]] of this template exists at $1.' .. ' If you make a change to this template, please update the print version as well.' -- cfg['display-print-category'] -- Set to true to enable output of cfg['print-category'] if a /Print subpage exists. -- This should be a boolean value (either true or false). cfg['display-print-category'] = true -- cfg['print-category'] -- Category to output if cfg['display-print-category'] is set to true, and a /Print subpage exists. cfg['print-category'] = 'Templates with print versions' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg 936dcd942da0ad844cd212849cde5e2dc1e45c3d Module:Documentation/styles.css 828 54 112 111 2021-06-24T03:47:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported text text/plain /* {{pp|small=yes}} */ .documentation, .documentation-metadata { border: 1px solid #a2a9b1; background-color: #ecfcf4; clear: both; } .documentation { margin: 1em 0 0 0; padding: 1em; } .documentation-metadata { margin: 0.2em 0; /* same margin left-right as .documentation */ font-style: italic; padding: 0.4em 1em; /* same padding left-right as .documentation */ } .documentation-startbox { padding-bottom: 3px; border-bottom: 1px solid #aaa; margin-bottom: 1ex; } .documentation-heading { font-weight: bold; font-size: 125%; } .documentation-clear { /* Don't want things to stick out where they shouldn't. */ clear: both; } .documentation-toolbar { font-style: normal; font-size: 85%; } ce0e629c92e3d825ab9fd927fe6cc37d9117b6cb Module:Effective protection expiry 828 55 114 113 2021-06-24T03:47:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain local p = {} -- Returns the expiry of a restriction of an action on a given title, or unknown if it cannot be known. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then local stabilitySettings = mw.ext.FlaggedRevs.getStabilitySettings(title) return stabilitySettings and stabilitySettings.expiry or 'unknown' elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' then error( 'First parameter must be one of edit, move, create, upload, autoreview', 2 ) end local rawExpiry = mw.getCurrentFrame():callParserFunction('PROTECTIONEXPIRY', action, pagename) if rawExpiry == 'infinity' then return 'infinity' elseif rawExpiry == '' then return 'unknown' else local year, month, day, hour, minute, second = rawExpiry:match( '^(%d%d%d%d)(%d%d)(%d%d)(%d%d)(%d%d)(%d%d)$' ) if year then return string.format( '%s-%s-%sT%s:%s:%s', year, month, day, hour, minute, second ) else error('internal error in Module:Effective protection expiry; malformed expiry timestamp') end end end setmetatable(p, { __index = function(t, k) return function(frame) return t._main(k, frame.args[1]) end end }) return p 9a8c58dc2667232ed08a9b206a5d89ca8150312b Module:Effective protection level 828 56 116 115 2021-06-24T03:47:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain local p = {} -- Returns the permission required to perform a given action on a given title. -- If no title is specified, the title of the page being displayed is used. function p._main(action, pagename) local title if type(pagename) == 'table' and pagename.prefixedText then title = pagename elseif pagename then title = mw.title.new(pagename) else title = mw.title.getCurrentTitle() end pagename = title.prefixedText if action == 'autoreview' then local level = mw.ext.FlaggedRevs.getStabilitySettings(title) level = level and level.autoreview if level == 'review' then return 'reviewer' elseif level ~= '' then return level else return nil -- not '*'. a page not being PC-protected is distinct from it being PC-protected with anyone able to review. also not '', as that would mean PC-protected but nobody can review end elseif action ~= 'edit' and action ~= 'move' and action ~= 'create' and action ~= 'upload' and action ~= 'undelete' then error( 'First parameter must be one of edit, move, create, upload, undelete, autoreview', 2 ) end if title.namespace == 8 then -- MediaWiki namespace if title.text:sub(-3) == '.js' or title.text:sub(-4) == '.css' or title.contentModel == 'javascript' or title.contentModel == 'css' then -- site JS or CSS page return 'interfaceadmin' else -- any non-JS/CSS MediaWiki page return 'sysop' end elseif title.namespace == 2 and title.isSubpage then if title.contentModel == 'javascript' or title.contentModel == 'css' then -- user JS or CSS page return 'interfaceadmin' elseif title.contentModel == 'json' then -- user JSON page return 'sysop' end end if action == 'undelete' then return 'sysop' end local level = title.protectionLevels[action] and title.protectionLevels[action][1] if level == 'sysop' or level == 'editprotected' then return 'sysop' elseif title.cascadingProtection.restrictions[action] and title.cascadingProtection.restrictions[action][1] then -- used by a cascading-protected page return 'sysop' elseif level == 'templateeditor' then return 'templateeditor' elseif action == 'move' then local blacklistentry = mw.ext.TitleBlacklist.test('edit', pagename) -- Testing action edit is correct, since this is for the source page. The target page name gets tested with action move. if blacklistentry and not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif title.namespace == 6 then return 'filemover' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end end local blacklistentry = mw.ext.TitleBlacklist.test(action, pagename) if blacklistentry then if not blacklistentry.params.autoconfirmed then return 'templateeditor' elseif level == 'extendedconfirmed' then return 'extendedconfirmed' else return 'autoconfirmed' end elseif level == 'editsemiprotected' then -- create-semiprotected pages return this for some reason return 'autoconfirmed' elseif level then return level elseif action == 'upload' then return 'autoconfirmed' elseif action == 'create' and title.namespace % 2 == 0 and title.namespace ~= 118 then -- You need to be registered, but not autoconfirmed, to create non-talk pages other than drafts return 'user' else return '*' end end setmetatable(p, { __index = function(t, k) return function(frame) return t._main(k, frame.args[1]) end end }) return p 70256a489edf6be9808031b14a7e3ef3e025da97 Module:File link 828 57 118 117 2021-06-24T03:47:31Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -- This module provides a library for formatting file wikilinks. local yesno = require('Module:Yesno') local checkType = require('libraryUtil').checkType local p = {} function p._main(args) checkType('_main', 1, args, 'table') -- This is basically libraryUtil.checkTypeForNamedArg, but we are rolling our -- own function to get the right error level. local function checkArg(key, val, level) if type(val) ~= 'string' then error(string.format( "type error in '%s' parameter of '_main' (expected string, got %s)", key, type(val) ), level) end end local ret = {} -- Adds a positional parameter to the buffer. local function addPositional(key) local val = args[key] if not val then return nil end checkArg(key, val, 4) ret[#ret + 1] = val end -- Adds a named parameter to the buffer. We assume that the parameter name -- is the same as the argument key. local function addNamed(key) local val = args[key] if not val then return nil end checkArg(key, val, 4) ret[#ret + 1] = key .. '=' .. val end -- Filename checkArg('file', args.file, 3) ret[#ret + 1] = 'File:' .. args.file -- Format if args.format then checkArg('format', args.format) if args.formatfile then checkArg('formatfile', args.formatfile) ret[#ret + 1] = args.format .. '=' .. args.formatfile else ret[#ret + 1] = args.format end end -- Border if yesno(args.border) then ret[#ret + 1] = 'border' end addPositional('location') addPositional('alignment') addPositional('size') addNamed('upright') addNamed('link') addNamed('alt') addNamed('page') addNamed('class') addNamed('lang') addNamed('start') addNamed('end') addNamed('thumbtime') addPositional('caption') return string.format('[[%s]]', table.concat(ret, '|')) end function p.main(frame) local origArgs = require('Module:Arguments').getArgs(frame, { wrappers = 'Template:File link' }) if not origArgs.file then error("'file' parameter missing from [[Template:File link]]", 0) end -- Copy the arguments that were passed to a new table to avoid looking up -- every possible parameter in the frame object. local args = {} for k, v in pairs(origArgs) do -- Make _BLANK a special argument to add a blank parameter. For use in -- conditional templates etc. it is useful for blank arguments to be -- ignored, but we still need a way to specify them so that we can do -- things like [[File:Example.png|link=]]. if v == '_BLANK' then v = '' end args[k] = v end return p._main(args) end return p 66925f088d11530f2482f04181a3baaaa0ad3d0c Module:Infobox/doc 828 58 122 121 2021-06-24T03:47:33Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported wikitext text/x-wiki {{High-use|3308957|all-pages = yes}} {{module rating|protected}} {{Lua|Module:Navbar}} '''Module:Infobox''' is a [[WP:Module|module]] that implements the {{tl|Infobox}} template. Please see the template page for usage instructions. == Tracking categories == * {{clc|Pages which use infobox templates with ignored data cells}} * {{clc|Articles which use infobox templates with no data rows}} * {{clc|Pages which use embedded infobox templates with the title parameter}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| [[Category:Modules that add a tracking category]] [[Category:Wikipedia infoboxes]] [[Category:Infobox modules]] }}</includeonly> e4db5ad02b017e76b9a6b75b7ad40e3e727c3bf6 Module:List 828 59 124 123 2021-06-24T03:47:33Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -- This module outputs different kinds of lists. At the moment, bulleted, -- unbulleted, horizontal, ordered, and horizontal ordered lists are supported. local libUtil = require('libraryUtil') local checkType = libUtil.checkType local mTableTools = require('Module:TableTools') local p = {} local listTypes = { ['bulleted'] = true, ['unbulleted'] = true, ['horizontal'] = true, ['ordered'] = true, ['horizontal_ordered'] = true } function p.makeListData(listType, args) -- Constructs a data table to be passed to p.renderList. local data = {} -- Classes data.classes = {} if listType == 'horizontal' or listType == 'horizontal_ordered' then table.insert(data.classes, 'hlist hlist-separated') elseif listType == 'unbulleted' then table.insert(data.classes, 'plainlist') end table.insert(data.classes, args.class) -- Main div style data.style = args.style -- Indent for horizontal lists if listType == 'horizontal' or listType == 'horizontal_ordered' then local indent = tonumber(args.indent) indent = indent and indent * 1.6 or 0 if indent > 0 then data.marginLeft = indent .. 'em' end end -- List style types for ordered lists -- This could be "1, 2, 3", "a, b, c", or a number of others. The list style -- type is either set by the "type" attribute or the "list-style-type" CSS -- property. if listType == 'ordered' or listType == 'horizontal_ordered' then data.listStyleType = args.list_style_type or args['list-style-type'] data.type = args['type'] -- Detect invalid type attributes and attempt to convert them to -- list-style-type CSS properties. if data.type and not data.listStyleType and not tostring(data.type):find('^%s*[1AaIi]%s*$') then data.listStyleType = data.type data.type = nil end end -- List tag type if listType == 'ordered' or listType == 'horizontal_ordered' then data.listTag = 'ol' else data.listTag = 'ul' end -- Start number for ordered lists data.start = args.start if listType == 'horizontal_ordered' then -- Apply fix to get start numbers working with horizontal ordered lists. local startNum = tonumber(data.start) if startNum then data.counterReset = 'listitem ' .. tostring(startNum - 1) end end -- List style -- ul_style and ol_style are included for backwards compatibility. No -- distinction is made for ordered or unordered lists. data.listStyle = args.list_style -- List items -- li_style is included for backwards compatibility. item_style was included -- to be easier to understand for non-coders. data.itemStyle = args.item_style or args.li_style data.items = {} for i, num in ipairs(mTableTools.numKeys(args)) do local item = {} item.content = args[num] item.style = args['item' .. tostring(num) .. '_style'] or args['item_style' .. tostring(num)] item.value = args['item' .. tostring(num) .. '_value'] or args['item_value' .. tostring(num)] table.insert(data.items, item) end return data end function p.renderList(data) -- Renders the list HTML. -- Return the blank string if there are no list items. if type(data.items) ~= 'table' or #data.items < 1 then return '' end -- Render the main div tag. local root = mw.html.create('div') for i, class in ipairs(data.classes or {}) do root:addClass(class) end root:css{['margin-left'] = data.marginLeft} if data.style then root:cssText(data.style) end -- Render the list tag. local list = root:tag(data.listTag or 'ul') list :attr{start = data.start, type = data.type} :css{ ['counter-reset'] = data.counterReset, ['list-style-type'] = data.listStyleType } if data.listStyle then list:cssText(data.listStyle) end -- Render the list items for i, t in ipairs(data.items or {}) do local item = list:tag('li') if data.itemStyle then item:cssText(data.itemStyle) end if t.style then item:cssText(t.style) end item :attr{value = t.value} :wikitext(t.content) end return tostring(root) end function p.renderTrackingCategories(args) local isDeprecated = false -- Tracks deprecated parameters. for k, v in pairs(args) do k = tostring(k) if k:find('^item_style%d+$') or k:find('^item_value%d+$') then isDeprecated = true break end end local ret = '' if isDeprecated then ret = ret .. '[[Category:List templates with deprecated parameters]]' end return ret end function p.makeList(listType, args) if not listType or not listTypes[listType] then error(string.format( "bad argument #1 to 'makeList' ('%s' is not a valid list type)", tostring(listType) ), 2) end checkType('makeList', 2, args, 'table') local data = p.makeListData(listType, args) local list = p.renderList(data) local trackingCategories = p.renderTrackingCategories(args) return list .. trackingCategories end for listType in pairs(listTypes) do p[listType] = function (frame) local mArguments = require('Module:Arguments') local origArgs = mArguments.getArgs(frame, { valueFunc = function (key, value) if not value or not mw.ustring.find(value, '%S') then return nil end if mw.ustring.find(value, '^%s*[%*#;:]') then return value else return value:match('^%s*(.-)%s*$') end return nil end }) -- Copy all the arguments to a new table, for faster indexing. local args = {} for k, v in pairs(origArgs) do args[k] = v end return p.makeList(listType, args) end end return p 0d6c114450d0f5b3c1d2171ebeb41ae74f203f88 Module:Lua banner 828 60 126 125 2021-06-24T03:47:34Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -- This module implements the {{lua}} template. local yesno = require('Module:Yesno') local mList = require('Module:List') local mTableTools = require('Module:TableTools') local mMessageBox = require('Module:Message box') local p = {} function p.main(frame) local origArgs = frame:getParent().args local args = {} for k, v in pairs(origArgs) do v = v:match('^%s*(.-)%s*$') if v ~= '' then args[k] = v end end return p._main(args) end function p._main(args) local modules = mTableTools.compressSparseArray(args) local box = p.renderBox(modules) local trackingCategories = p.renderTrackingCategories(args, modules) return box .. trackingCategories end function p.renderBox(modules) local boxArgs = {} if #modules < 1 then boxArgs.text = '<strong class="error">Error: no modules specified</strong>' else local moduleLinks = {} for i, module in ipairs(modules) do moduleLinks[i] = string.format('[[:%s]]', module) local maybeSandbox = mw.title.new(module .. '/sandbox') if maybeSandbox.exists then moduleLinks[i] = moduleLinks[i] .. string.format(' ([[:%s|sandbox]])', maybeSandbox.fullText) end end local moduleList = mList.makeList('bulleted', moduleLinks) local title = mw.title.getCurrentTitle() if title.subpageText == "doc" then title = title.basePageTitle end if title.contentModel == "Scribunto" then boxArgs.text = 'This module depends on the following other modules:' .. moduleList else boxArgs.text = 'This template uses [[Wikipedia:Lua|Lua]]:\n' .. moduleList end end boxArgs.type = 'notice' boxArgs.small = true boxArgs.image = '[[File:Lua-logo-nolabel.svg|30px|alt=|link=]]' return mMessageBox.main('mbox', boxArgs) end function p.renderTrackingCategories(args, modules, titleObj) if yesno(args.nocat) then return '' end local cats = {} -- Error category if #modules < 1 then cats[#cats + 1] = 'Lua templates with errors' end -- Lua templates category titleObj = titleObj or mw.title.getCurrentTitle() local subpageBlacklist = { doc = true, sandbox = true, sandbox2 = true, testcases = true } if not subpageBlacklist[titleObj.subpageText] then local protCatName if titleObj.namespace == 10 then local category = args.category if not category then local categories = { ['Module:String'] = 'Lua String-based templates', ['Module:Math'] = 'Templates based on the Math Lua module', ['Module:BaseConvert'] = 'Templates based on the BaseConvert Lua module', ['Module:Citation'] = 'Lua-based citation templates' } categories['Module:Citation/CS1'] = categories['Module:Citation'] category = modules[1] and categories[modules[1]] category = category or 'Lua-based templates' end cats[#cats + 1] = category protCatName = "Templates using under-protected Lua modules" elseif titleObj.namespace == 828 then protCatName = "Modules depending on under-protected modules" end if not args.noprotcat and protCatName then local protLevels = { autoconfirmed = 1, extendedconfirmed = 2, templateeditor = 3, sysop = 4 } local currentProt if titleObj.id ~= 0 then -- id is 0 (page does not exist) if am previewing before creating a template. currentProt = titleObj.protectionLevels["edit"][1] end if currentProt == nil then currentProt = 0 else currentProt = protLevels[currentProt] end for i, module in ipairs(modules) do if module ~= "WP:libraryUtil" then local moduleProt = mw.title.new(module).protectionLevels["edit"][1] if moduleProt == nil then moduleProt = 0 else moduleProt = protLevels[moduleProt] end if moduleProt < currentProt then cats[#cats + 1] = protCatName break end end end end end for i, cat in ipairs(cats) do cats[i] = string.format('[[Category:%s]]', cat) end return table.concat(cats) end return p aaf9d18b952effc2a0bc890e66040f403c1e8a69 Module:Message box 828 61 128 127 2021-06-24T03:47:34Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -- This is a meta-module for producing message box templates, including -- {{mbox}}, {{ambox}}, {{imbox}}, {{tmbox}}, {{ombox}}, {{cmbox}} and {{fmbox}}. -- Load necessary modules. require('Module:No globals') local getArgs local yesno = require('Module:Yesno') -- Get a language object for formatDate and ucfirst. local lang = mw.language.getContentLanguage() -- Define constants local CONFIG_MODULE = 'Module:Message box/configuration' local DEMOSPACES = {talk = 'tmbox', image = 'imbox', file = 'imbox', category = 'cmbox', article = 'ambox', main = 'ambox'} -------------------------------------------------------------------------------- -- Helper functions -------------------------------------------------------------------------------- local function getTitleObject(...) -- Get the title object, passing the function through pcall -- in case we are over the expensive function count limit. local success, title = pcall(mw.title.new, ...) if success then return title end end local function union(t1, t2) -- Returns the union of two arrays. local vals = {} for i, v in ipairs(t1) do vals[v] = true end for i, v in ipairs(t2) do vals[v] = true end local ret = {} for k in pairs(vals) do table.insert(ret, k) end table.sort(ret) return ret end local function getArgNums(args, prefix) local nums = {} for k, v in pairs(args) do local num = mw.ustring.match(tostring(k), '^' .. prefix .. '([1-9]%d*)$') if num then table.insert(nums, tonumber(num)) end end table.sort(nums) return nums end -------------------------------------------------------------------------------- -- Box class definition -------------------------------------------------------------------------------- local MessageBox = {} MessageBox.__index = MessageBox function MessageBox.new(boxType, args, cfg) args = args or {} local obj = {} -- Set the title object and the namespace. obj.title = getTitleObject(args.page) or mw.title.getCurrentTitle() -- Set the config for our box type. obj.cfg = cfg[boxType] if not obj.cfg then local ns = obj.title.namespace -- boxType is "mbox" or invalid input if args.demospace and args.demospace ~= '' then -- implement demospace parameter of mbox local demospace = string.lower(args.demospace) if DEMOSPACES[demospace] then -- use template from DEMOSPACES obj.cfg = cfg[DEMOSPACES[demospace]] elseif string.find( demospace, 'talk' ) then -- demo as a talk page obj.cfg = cfg.tmbox else -- default to ombox obj.cfg = cfg.ombox end elseif ns == 0 then obj.cfg = cfg.ambox -- main namespace elseif ns == 6 then obj.cfg = cfg.imbox -- file namespace elseif ns == 14 then obj.cfg = cfg.cmbox -- category namespace else local nsTable = mw.site.namespaces[ns] if nsTable and nsTable.isTalk then obj.cfg = cfg.tmbox -- any talk namespace else obj.cfg = cfg.ombox -- other namespaces or invalid input end end end -- Set the arguments, and remove all blank arguments except for the ones -- listed in cfg.allowBlankParams. do local newArgs = {} for k, v in pairs(args) do if v ~= '' then newArgs[k] = v end end for i, param in ipairs(obj.cfg.allowBlankParams or {}) do newArgs[param] = args[param] end obj.args = newArgs end -- Define internal data structure. obj.categories = {} obj.classes = {} -- For lazy loading of [[Module:Category handler]]. obj.hasCategories = false return setmetatable(obj, MessageBox) end function MessageBox:addCat(ns, cat, sort) if not cat then return nil end if sort then cat = string.format('[[Category:%s|%s]]', cat, sort) else cat = string.format('[[Category:%s]]', cat) end self.hasCategories = true self.categories[ns] = self.categories[ns] or {} table.insert(self.categories[ns], cat) end function MessageBox:addClass(class) if not class then return nil end table.insert(self.classes, class) end function MessageBox:setParameters() local args = self.args local cfg = self.cfg -- Get type data. self.type = args.type local typeData = cfg.types[self.type] self.invalidTypeError = cfg.showInvalidTypeError and self.type and not typeData typeData = typeData or cfg.types[cfg.default] self.typeClass = typeData.class self.typeImage = typeData.image -- Find if the box has been wrongly substituted. self.isSubstituted = cfg.substCheck and args.subst == 'SUBST' -- Find whether we are using a small message box. self.isSmall = cfg.allowSmall and ( cfg.smallParam and args.small == cfg.smallParam or not cfg.smallParam and yesno(args.small) ) -- Add attributes, classes and styles. self.id = args.id self.name = args.name if self.name then self:addClass('box-' .. string.gsub(self.name,' ','_')) end if yesno(args.plainlinks) ~= false then self:addClass('plainlinks') end for _, class in ipairs(cfg.classes or {}) do self:addClass(class) end if self.isSmall then self:addClass(cfg.smallClass or 'mbox-small') end self:addClass(self.typeClass) self:addClass(args.class) self.style = args.style self.attrs = args.attrs -- Set text style. self.textstyle = args.textstyle -- Find if we are on the template page or not. This functionality is only -- used if useCollapsibleTextFields is set, or if both cfg.templateCategory -- and cfg.templateCategoryRequireName are set. self.useCollapsibleTextFields = cfg.useCollapsibleTextFields if self.useCollapsibleTextFields or cfg.templateCategory and cfg.templateCategoryRequireName then if self.name then local templateName = mw.ustring.match( self.name, '^[tT][eE][mM][pP][lL][aA][tT][eE][%s_]*:[%s_]*(.*)$' ) or self.name templateName = 'Template:' .. templateName self.templateTitle = getTitleObject(templateName) end self.isTemplatePage = self.templateTitle and mw.title.equals(self.title, self.templateTitle) end -- Process data for collapsible text fields. At the moment these are only -- used in {{ambox}}. if self.useCollapsibleTextFields then -- Get the self.issue value. if self.isSmall and args.smalltext then self.issue = args.smalltext else local sect if args.sect == '' then sect = 'This ' .. (cfg.sectionDefault or 'page') elseif type(args.sect) == 'string' then sect = 'This ' .. args.sect end local issue = args.issue issue = type(issue) == 'string' and issue ~= '' and issue or nil local text = args.text text = type(text) == 'string' and text or nil local issues = {} table.insert(issues, sect) table.insert(issues, issue) table.insert(issues, text) self.issue = table.concat(issues, ' ') end -- Get the self.talk value. local talk = args.talk -- Show talk links on the template page or template subpages if the talk -- parameter is blank. if talk == '' and self.templateTitle and ( mw.title.equals(self.templateTitle, self.title) or self.title:isSubpageOf(self.templateTitle) ) then talk = '#' elseif talk == '' then talk = nil end if talk then -- If the talk value is a talk page, make a link to that page. Else -- assume that it's a section heading, and make a link to the talk -- page of the current page with that section heading. local talkTitle = getTitleObject(talk) local talkArgIsTalkPage = true if not talkTitle or not talkTitle.isTalkPage then talkArgIsTalkPage = false talkTitle = getTitleObject( self.title.text, mw.site.namespaces[self.title.namespace].talk.id ) end if talkTitle and talkTitle.exists then local talkText if self.isSmall then local talkLink = talkArgIsTalkPage and talk or (talkTitle.prefixedText .. '#' .. talk) talkText = string.format('([[%s|talk]])', talkLink) else talkText = 'Relevant discussion may be found on' if talkArgIsTalkPage then talkText = string.format( '%s [[%s|%s]].', talkText, talk, talkTitle.prefixedText ) else talkText = string.format( '%s the [[%s#%s|talk page]].', talkText, talkTitle.prefixedText, talk ) end end self.talk = talkText end end -- Get other values. self.fix = args.fix ~= '' and args.fix or nil local date if args.date and args.date ~= '' then date = args.date elseif args.date == '' and self.isTemplatePage then date = lang:formatDate('F Y') end if date then self.date = string.format(" <span class='date-container'>''(<span class='date'>%s</span>)''</span>", date) end self.info = args.info if yesno(args.removalnotice) then self.removalNotice = cfg.removalNotice end end -- Set the non-collapsible text field. At the moment this is used by all box -- types other than ambox, and also by ambox when small=yes. if self.isSmall then self.text = args.smalltext or args.text else self.text = args.text end -- Set the below row. self.below = cfg.below and args.below -- General image settings. self.imageCellDiv = not self.isSmall and cfg.imageCellDiv self.imageEmptyCell = cfg.imageEmptyCell if cfg.imageEmptyCellStyle then self.imageEmptyCellStyle = 'border:none;padding:0;width:1px' end -- Left image settings. local imageLeft = self.isSmall and args.smallimage or args.image if cfg.imageCheckBlank and imageLeft ~= 'blank' and imageLeft ~= 'none' or not cfg.imageCheckBlank and imageLeft ~= 'none' then self.imageLeft = imageLeft if not imageLeft then local imageSize = self.isSmall and (cfg.imageSmallSize or '30x30px') or '40x40px' self.imageLeft = string.format('[[File:%s|%s|link=|alt=]]', self.typeImage or 'Imbox notice.png', imageSize) end end -- Right image settings. local imageRight = self.isSmall and args.smallimageright or args.imageright if not (cfg.imageRightNone and imageRight == 'none') then self.imageRight = imageRight end end function MessageBox:setMainspaceCategories() local args = self.args local cfg = self.cfg if not cfg.allowMainspaceCategories then return nil end local nums = {} for _, prefix in ipairs{'cat', 'category', 'all'} do args[prefix .. '1'] = args[prefix] nums = union(nums, getArgNums(args, prefix)) end -- The following is roughly equivalent to the old {{Ambox/category}}. local date = args.date date = type(date) == 'string' and date local preposition = 'from' for _, num in ipairs(nums) do local mainCat = args['cat' .. tostring(num)] or args['category' .. tostring(num)] local allCat = args['all' .. tostring(num)] mainCat = type(mainCat) == 'string' and mainCat allCat = type(allCat) == 'string' and allCat if mainCat and date and date ~= '' then local catTitle = string.format('%s %s %s', mainCat, preposition, date) self:addCat(0, catTitle) catTitle = getTitleObject('Category:' .. catTitle) if not catTitle or not catTitle.exists then self:addCat(0, 'Articles with invalid date parameter in template') end elseif mainCat and (not date or date == '') then self:addCat(0, mainCat) end if allCat then self:addCat(0, allCat) end end end function MessageBox:setTemplateCategories() local args = self.args local cfg = self.cfg -- Add template categories. if cfg.templateCategory then if cfg.templateCategoryRequireName then if self.isTemplatePage then self:addCat(10, cfg.templateCategory) end elseif not self.title.isSubpage then self:addCat(10, cfg.templateCategory) end end -- Add template error categories. if cfg.templateErrorCategory then local templateErrorCategory = cfg.templateErrorCategory local templateCat, templateSort if not self.name and not self.title.isSubpage then templateCat = templateErrorCategory elseif self.isTemplatePage then local paramsToCheck = cfg.templateErrorParamsToCheck or {} local count = 0 for i, param in ipairs(paramsToCheck) do if not args[param] then count = count + 1 end end if count > 0 then templateCat = templateErrorCategory templateSort = tostring(count) end if self.categoryNums and #self.categoryNums > 0 then templateCat = templateErrorCategory templateSort = 'C' end end self:addCat(10, templateCat, templateSort) end end function MessageBox:setAllNamespaceCategories() -- Set categories for all namespaces. if self.invalidTypeError then local allSort = (self.title.namespace == 0 and 'Main:' or '') .. self.title.prefixedText self:addCat('all', 'Wikipedia message box parameter needs fixing', allSort) end if self.isSubstituted then self:addCat('all', 'Pages with incorrectly substituted templates') end end function MessageBox:setCategories() if self.title.namespace == 0 then self:setMainspaceCategories() elseif self.title.namespace == 10 then self:setTemplateCategories() end self:setAllNamespaceCategories() end function MessageBox:renderCategories() if not self.hasCategories then -- No categories added, no need to pass them to Category handler so, -- if it was invoked, it would return the empty string. -- So we shortcut and return the empty string. return "" end -- Convert category tables to strings and pass them through -- [[Module:Category handler]]. return require('Module:Category handler')._main{ main = table.concat(self.categories[0] or {}), template = table.concat(self.categories[10] or {}), all = table.concat(self.categories.all or {}), nocat = self.args.nocat, page = self.args.page } end function MessageBox:export() local root = mw.html.create() -- Add the subst check error. if self.isSubstituted and self.name then root:tag('b') :addClass('error') :wikitext(string.format( 'Template <code>%s[[Template:%s|%s]]%s</code> has been incorrectly substituted.', mw.text.nowiki('{{'), self.name, self.name, mw.text.nowiki('}}') )) end -- Create the box table. local boxTable = root:tag('table') boxTable:attr('id', self.id or nil) for i, class in ipairs(self.classes or {}) do boxTable:addClass(class or nil) end boxTable :cssText(self.style or nil) :attr('role', 'presentation') if self.attrs then boxTable:attr(self.attrs) end -- Add the left-hand image. local row = boxTable:tag('tr') if self.imageLeft then local imageLeftCell = row:tag('td'):addClass('mbox-image') if self.imageCellDiv then -- If we are using a div, redefine imageLeftCell so that the image -- is inside it. Divs use style="width: 52px;", which limits the -- image width to 52px. If any images in a div are wider than that, -- they may overlap with the text or cause other display problems. imageLeftCell = imageLeftCell:tag('div'):css('width', '52px') end imageLeftCell:wikitext(self.imageLeft or nil) elseif self.imageEmptyCell then -- Some message boxes define an empty cell if no image is specified, and -- some don't. The old template code in templates where empty cells are -- specified gives the following hint: "No image. Cell with some width -- or padding necessary for text cell to have 100% width." row:tag('td') :addClass('mbox-empty-cell') :cssText(self.imageEmptyCellStyle or nil) end -- Add the text. local textCell = row:tag('td'):addClass('mbox-text') if self.useCollapsibleTextFields then -- The message box uses advanced text parameters that allow things to be -- collapsible. At the moment, only ambox uses this. textCell:cssText(self.textstyle or nil) local textCellDiv = textCell:tag('div') textCellDiv :addClass('mbox-text-span') :wikitext(self.issue or nil) if (self.talk or self.fix) then textCellDiv:tag('span') :addClass('hide-when-compact') :wikitext(self.talk and (' ' .. self.talk) or nil) :wikitext(self.fix and (' ' .. self.fix) or nil) end textCellDiv:wikitext(self.date and (' ' .. self.date) or nil) if self.info and not self.isSmall then textCellDiv :tag('span') :addClass('hide-when-compact') :wikitext(self.info and (' ' .. self.info) or nil) end if self.removalNotice then textCellDiv:tag('span') :addClass('hide-when-compact') :tag('i') :wikitext(string.format(" (%s)", self.removalNotice)) end else -- Default text formatting - anything goes. textCell :cssText(self.textstyle or nil) :wikitext(self.text or nil) end -- Add the right-hand image. if self.imageRight then local imageRightCell = row:tag('td'):addClass('mbox-imageright') if self.imageCellDiv then -- If we are using a div, redefine imageRightCell so that the image -- is inside it. imageRightCell = imageRightCell:tag('div'):css('width', '52px') end imageRightCell :wikitext(self.imageRight or nil) end -- Add the below row. if self.below then boxTable:tag('tr') :tag('td') :attr('colspan', self.imageRight and '3' or '2') :addClass('mbox-text') :cssText(self.textstyle or nil) :wikitext(self.below or nil) end -- Add error message for invalid type parameters. if self.invalidTypeError then root:tag('div') :css('text-align', 'center') :wikitext(string.format( 'This message box is using an invalid "type=%s" parameter and needs fixing.', self.type or '' )) end -- Add categories. root:wikitext(self:renderCategories() or nil) return tostring(root) end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p, mt = {}, {} function p._exportClasses() -- For testing. return { MessageBox = MessageBox } end function p.main(boxType, args, cfgTables) local box = MessageBox.new(boxType, args, cfgTables or mw.loadData(CONFIG_MODULE)) box:setParameters() box:setCategories() return box:export() end function mt.__index(t, k) return function (frame) if not getArgs then getArgs = require('Module:Arguments').getArgs end return t.main(k, getArgs(frame, {trim = false, removeBlanks = false})) end end return setmetatable(p, mt) b1fd4c365d29a34bbcf3aef2adec6701ed0efe45 Module:Message box/configuration 828 62 130 129 2021-06-24T03:47:34Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -------------------------------------------------------------------------------- -- Message box configuration -- -- -- -- This module contains configuration data for [[Module:Message box]]. -- -------------------------------------------------------------------------------- return { ambox = { types = { speedy = { class = 'ambox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'ambox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'ambox-content', image = 'Ambox important.svg' }, style = { class = 'ambox-style', image = 'Edit-clear.svg' }, move = { class = 'ambox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ambox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ambox-notice', image = 'Information icon4.svg' } }, default = 'notice', allowBlankParams = {'talk', 'sect', 'date', 'issue', 'fix', 'subst', 'hidden'}, allowSmall = true, smallParam = 'left', smallClass = 'mbox-small-left', substCheck = true, classes = {'metadata', 'ambox'}, imageEmptyCell = true, imageCheckBlank = true, imageSmallSize = '20x20px', imageCellDiv = true, useCollapsibleTextFields = true, imageRightNone = true, sectionDefault = 'article', allowMainspaceCategories = true, templateCategory = 'Article message templates', templateCategoryRequireName = true, templateErrorCategory = 'Article message templates with missing parameters', templateErrorParamsToCheck = {'issue', 'fix', 'subst'}, removalNotice = '[[Help:Maintenance template removal|Learn how and when to remove this template message]]' }, cmbox = { types = { speedy = { class = 'cmbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'cmbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'cmbox-content', image = 'Ambox important.svg' }, style = { class = 'cmbox-style', image = 'Edit-clear.svg' }, move = { class = 'cmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'cmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'cmbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'cmbox'}, imageEmptyCell = true }, fmbox = { types = { warning = { class = 'fmbox-warning', image = 'Ambox warning pn.svg' }, editnotice = { class = 'fmbox-editnotice', image = 'Information icon4.svg' }, system = { class = 'fmbox-system', image = 'Information icon4.svg' } }, default = 'system', showInvalidTypeError = true, classes = {'fmbox'}, imageEmptyCell = false, imageRightNone = false }, imbox = { types = { speedy = { class = 'imbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'imbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'imbox-content', image = 'Ambox important.svg' }, style = { class = 'imbox-style', image = 'Edit-clear.svg' }, move = { class = 'imbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'imbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, license = { class = 'imbox-license licensetpl', image = 'Imbox license.png' -- @todo We need an SVG version of this }, featured = { class = 'imbox-featured', image = 'Cscr-featured.svg' }, notice = { class = 'imbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'imbox'}, imageEmptyCell = true, below = true, templateCategory = 'File message boxes' }, ombox = { types = { speedy = { class = 'ombox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'ombox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'ombox-content', image = 'Ambox important.svg' }, style = { class = 'ombox-style', image = 'Edit-clear.svg' }, move = { class = 'ombox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'ombox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'ombox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'ombox'}, allowSmall = true, imageEmptyCell = true, imageRightNone = true }, tmbox = { types = { speedy = { class = 'tmbox-speedy', image = 'Ambox warning pn.svg' }, delete = { class = 'tmbox-delete', image = 'Ambox warning pn.svg' }, content = { class = 'tmbox-content', image = 'Ambox important.svg' }, style = { class = 'tmbox-style', image = 'Edit-clear.svg' }, move = { class = 'tmbox-move', image = 'Merge-split-transwiki default.svg' }, protection = { class = 'tmbox-protection', image = 'Semi-protection-shackle-keyhole.svg' }, notice = { class = 'tmbox-notice', image = 'Information icon4.svg' } }, default = 'notice', showInvalidTypeError = true, classes = {'tmbox'}, allowSmall = true, imageRightNone = true, imageEmptyCell = true, imageEmptyCellStyle = true, templateCategory = 'Talk message boxes' } } ef8171b8278c52d9c20a4149614d97cd948670c2 Module:No globals 828 63 132 131 2021-06-24T03:47:35Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain local mt = getmetatable(_G) or {} function mt.__index (t, k) if k ~= 'arg' then error('Tried to read nil global ' .. tostring(k), 2) end return nil end function mt.__newindex(t, k, v) if k ~= 'arg' then error('Tried to write global ' .. tostring(k), 2) end rawset(t, k, v) end setmetatable(_G, mt) 8ce3969f7d53b08bd00dabe4cc9780bc6afd412a Module:Protection banner 828 64 134 133 2021-06-24T03:47:35Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -- This module implements {{pp-meta}} and its daughter templates such as -- {{pp-dispute}}, {{pp-vandalism}} and {{pp-sock}}. -- Initialise necessary modules. require('Module:No globals') local makeFileLink = require('Module:File link')._main local effectiveProtectionLevel = require('Module:Effective protection level')._main local effectiveProtectionExpiry = require('Module:Effective protection expiry')._main local yesno = require('Module:Yesno') -- Lazily initialise modules and objects we don't always need. local getArgs, makeMessageBox, lang -- Set constants. local CONFIG_MODULE = 'Module:Protection banner/config' -------------------------------------------------------------------------------- -- Helper functions -------------------------------------------------------------------------------- local function makeCategoryLink(cat, sort) if cat then return string.format( '[[%s:%s|%s]]', mw.site.namespaces[14].name, cat, sort ) end end -- Validation function for the expiry and the protection date local function validateDate(dateString, dateType) if not lang then lang = mw.language.getContentLanguage() end local success, result = pcall(lang.formatDate, lang, 'U', dateString) if success then result = tonumber(result) if result then return result end end error(string.format( 'invalid %s: %s', dateType, tostring(dateString) ), 4) end local function makeFullUrl(page, query, display) return string.format( '[%s %s]', tostring(mw.uri.fullUrl(page, query)), display ) end -- Given a directed graph formatted as node -> table of direct successors, -- get a table of all nodes reachable from a given node (though always -- including the given node). local function getReachableNodes(graph, start) local toWalk, retval = {[start] = true}, {} while true do -- Can't use pairs() since we're adding and removing things as we're iterating local k = next(toWalk) -- This always gets the "first" key if k == nil then return retval end toWalk[k] = nil retval[k] = true for _,v in ipairs(graph[k]) do if not retval[v] then toWalk[v] = true end end end end -------------------------------------------------------------------------------- -- Protection class -------------------------------------------------------------------------------- local Protection = {} Protection.__index = Protection Protection.supportedActions = { edit = true, move = true, autoreview = true, upload = true } Protection.bannerConfigFields = { 'text', 'explanation', 'tooltip', 'alt', 'link', 'image' } function Protection.new(args, cfg, title) local obj = {} obj._cfg = cfg obj.title = title or mw.title.getCurrentTitle() -- Set action if not args.action then obj.action = 'edit' elseif Protection.supportedActions[args.action] then obj.action = args.action else error(string.format( 'invalid action: %s', tostring(args.action) ), 3) end -- Set level obj.level = args.demolevel or effectiveProtectionLevel(obj.action, obj.title) if not obj.level or (obj.action == 'move' and obj.level == 'autoconfirmed') then -- Users need to be autoconfirmed to move pages anyway, so treat -- semi-move-protected pages as unprotected. obj.level = '*' end -- Set expiry local effectiveExpiry = effectiveProtectionExpiry(obj.action, obj.title) if effectiveExpiry == 'infinity' then obj.expiry = 'indef' elseif effectiveExpiry ~= 'unknown' then obj.expiry = validateDate(effectiveExpiry, 'expiry date') end -- Set reason if args[1] then obj.reason = mw.ustring.lower(args[1]) if obj.reason:find('|') then error('reasons cannot contain the pipe character ("|")', 3) end end -- Set protection date if args.date then obj.protectionDate = validateDate(args.date, 'protection date') end -- Set banner config do obj.bannerConfig = {} local configTables = {} if cfg.banners[obj.action] then configTables[#configTables + 1] = cfg.banners[obj.action][obj.reason] end if cfg.defaultBanners[obj.action] then configTables[#configTables + 1] = cfg.defaultBanners[obj.action][obj.level] configTables[#configTables + 1] = cfg.defaultBanners[obj.action].default end configTables[#configTables + 1] = cfg.masterBanner for i, field in ipairs(Protection.bannerConfigFields) do for j, t in ipairs(configTables) do if t[field] then obj.bannerConfig[field] = t[field] break end end end end return setmetatable(obj, Protection) end function Protection:isUserScript() -- Whether the page is a user JavaScript or CSS page. local title = self.title return title.namespace == 2 and ( title.contentModel == 'javascript' or title.contentModel == 'css' ) end function Protection:isProtected() return self.level ~= '*' end function Protection:shouldShowLock() -- Whether we should output a banner/padlock return self:isProtected() and not self:isUserScript() end -- Whether this page needs a protection category. Protection.shouldHaveProtectionCategory = Protection.shouldShowLock function Protection:isTemporary() return type(self.expiry) == 'number' end function Protection:makeProtectionCategory() if not self:shouldHaveProtectionCategory() then return '' end local cfg = self._cfg local title = self.title -- Get the expiry key fragment. local expiryFragment if self.expiry == 'indef' then expiryFragment = self.expiry elseif type(self.expiry) == 'number' then expiryFragment = 'temp' end -- Get the namespace key fragment. local namespaceFragment = cfg.categoryNamespaceKeys[title.namespace] if not namespaceFragment and title.namespace % 2 == 1 then namespaceFragment = 'talk' end -- Define the order that key fragments are tested in. This is done with an -- array of tables containing the value to be tested, along with its -- position in the cfg.protectionCategories table. local order = { {val = expiryFragment, keypos = 1}, {val = namespaceFragment, keypos = 2}, {val = self.reason, keypos = 3}, {val = self.level, keypos = 4}, {val = self.action, keypos = 5} } --[[ -- The old protection templates used an ad-hoc protection category system, -- with some templates prioritising namespaces in their categories, and -- others prioritising the protection reason. To emulate this in this module -- we use the config table cfg.reasonsWithNamespacePriority to set the -- reasons for which namespaces have priority over protection reason. -- If we are dealing with one of those reasons, move the namespace table to -- the end of the order table, i.e. give it highest priority. If not, the -- reason should have highest priority, so move that to the end of the table -- instead. --]] table.insert(order, table.remove(order, self.reason and cfg.reasonsWithNamespacePriority[self.reason] and 2 or 3)) --[[ -- Define the attempt order. Inactive subtables (subtables with nil "value" -- fields) are moved to the end, where they will later be given the key -- "all". This is to cut down on the number of table lookups in -- cfg.protectionCategories, which grows exponentially with the number of -- non-nil keys. We keep track of the number of active subtables with the -- noActive parameter. --]] local noActive, attemptOrder do local active, inactive = {}, {} for i, t in ipairs(order) do if t.val then active[#active + 1] = t else inactive[#inactive + 1] = t end end noActive = #active attemptOrder = active for i, t in ipairs(inactive) do attemptOrder[#attemptOrder + 1] = t end end --[[ -- Check increasingly generic key combinations until we find a match. If a -- specific category exists for the combination of key fragments we are -- given, that match will be found first. If not, we keep trying different -- key fragment combinations until we match using the key -- "all-all-all-all-all". -- -- To generate the keys, we index the key subtables using a binary matrix -- with indexes i and j. j is only calculated up to the number of active -- subtables. For example, if there were three active subtables, the matrix -- would look like this, with 0 corresponding to the key fragment "all", and -- 1 corresponding to other key fragments. -- -- j 1 2 3 -- i -- 1 1 1 1 -- 2 0 1 1 -- 3 1 0 1 -- 4 0 0 1 -- 5 1 1 0 -- 6 0 1 0 -- 7 1 0 0 -- 8 0 0 0 -- -- Values of j higher than the number of active subtables are set -- to the string "all". -- -- A key for cfg.protectionCategories is constructed for each value of i. -- The position of the value in the key is determined by the keypos field in -- each subtable. --]] local cats = cfg.protectionCategories for i = 1, 2^noActive do local key = {} for j, t in ipairs(attemptOrder) do if j > noActive then key[t.keypos] = 'all' else local quotient = i / 2 ^ (j - 1) quotient = math.ceil(quotient) if quotient % 2 == 1 then key[t.keypos] = t.val else key[t.keypos] = 'all' end end end key = table.concat(key, '|') local attempt = cats[key] if attempt then return makeCategoryLink(attempt, title.text) end end return '' end function Protection:isIncorrect() local expiry = self.expiry return not self:shouldHaveProtectionCategory() or type(expiry) == 'number' and expiry < os.time() end function Protection:isTemplateProtectedNonTemplate() local action, namespace = self.action, self.title.namespace return self.level == 'templateeditor' and ( (action ~= 'edit' and action ~= 'move') or (namespace ~= 10 and namespace ~= 828) ) end function Protection:makeCategoryLinks() local msg = self._cfg.msg local ret = {self:makeProtectionCategory()} if self:isIncorrect() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-incorrect'], self.title.text ) end if self:isTemplateProtectedNonTemplate() then ret[#ret + 1] = makeCategoryLink( msg['tracking-category-template'], self.title.text ) end return table.concat(ret) end -------------------------------------------------------------------------------- -- Blurb class -------------------------------------------------------------------------------- local Blurb = {} Blurb.__index = Blurb Blurb.bannerTextFields = { text = true, explanation = true, tooltip = true, alt = true, link = true } function Blurb.new(protectionObj, args, cfg) return setmetatable({ _cfg = cfg, _protectionObj = protectionObj, _args = args }, Blurb) end -- Private methods -- function Blurb:_formatDate(num) -- Formats a Unix timestamp into dd Month, YYYY format. lang = lang or mw.language.getContentLanguage() local success, date = pcall( lang.formatDate, lang, self._cfg.msg['expiry-date-format'] or 'j F Y', '@' .. tostring(num) ) if success then return date end end function Blurb:_getExpandedMessage(msgKey) return self:_substituteParameters(self._cfg.msg[msgKey]) end function Blurb:_substituteParameters(msg) if not self._params then local parameterFuncs = {} parameterFuncs.CURRENTVERSION = self._makeCurrentVersionParameter parameterFuncs.EDITREQUEST = self._makeEditRequestParameter parameterFuncs.EXPIRY = self._makeExpiryParameter parameterFuncs.EXPLANATIONBLURB = self._makeExplanationBlurbParameter parameterFuncs.IMAGELINK = self._makeImageLinkParameter parameterFuncs.INTROBLURB = self._makeIntroBlurbParameter parameterFuncs.INTROFRAGMENT = self._makeIntroFragmentParameter parameterFuncs.PAGETYPE = self._makePagetypeParameter parameterFuncs.PROTECTIONBLURB = self._makeProtectionBlurbParameter parameterFuncs.PROTECTIONDATE = self._makeProtectionDateParameter parameterFuncs.PROTECTIONLEVEL = self._makeProtectionLevelParameter parameterFuncs.PROTECTIONLOG = self._makeProtectionLogParameter parameterFuncs.TALKPAGE = self._makeTalkPageParameter parameterFuncs.TOOLTIPBLURB = self._makeTooltipBlurbParameter parameterFuncs.TOOLTIPFRAGMENT = self._makeTooltipFragmentParameter parameterFuncs.VANDAL = self._makeVandalTemplateParameter self._params = setmetatable({}, { __index = function (t, k) local param if parameterFuncs[k] then param = parameterFuncs[k](self) end param = param or '' t[k] = param return param end }) end msg = msg:gsub('${(%u+)}', self._params) return msg end function Blurb:_makeCurrentVersionParameter() -- A link to the page history or the move log, depending on the kind of -- protection. local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'move' then -- We need the move log link. return makeFullUrl( 'Special:Log', {type = 'move', page = pagename}, self:_getExpandedMessage('current-version-move-display') ) else -- We need the history link. return makeFullUrl( pagename, {action = 'history'}, self:_getExpandedMessage('current-version-edit-display') ) end end function Blurb:_makeEditRequestParameter() local mEditRequest = require('Module:Submit an edit request') local action = self._protectionObj.action local level = self._protectionObj.level -- Get the edit request type. local requestType if action == 'edit' then if level == 'autoconfirmed' then requestType = 'semi' elseif level == 'extendedconfirmed' then requestType = 'extended' elseif level == 'templateeditor' then requestType = 'template' end end requestType = requestType or 'full' -- Get the display value. local display = self:_getExpandedMessage('edit-request-display') return mEditRequest._link{type = requestType, display = display} end function Blurb:_makeExpiryParameter() local expiry = self._protectionObj.expiry if type(expiry) == 'number' then return self:_formatDate(expiry) else return expiry end end function Blurb:_makeExplanationBlurbParameter() -- Cover special cases first. if self._protectionObj.title.namespace == 8 then -- MediaWiki namespace return self:_getExpandedMessage('explanation-blurb-nounprotect') end -- Get explanation blurb table keys local action = self._protectionObj.action local level = self._protectionObj.level local talkKey = self._protectionObj.title.isTalkPage and 'talk' or 'subject' -- Find the message in the explanation blurb table and substitute any -- parameters. local explanations = self._cfg.explanationBlurbs local msg if explanations[action][level] and explanations[action][level][talkKey] then msg = explanations[action][level][talkKey] elseif explanations[action][level] and explanations[action][level].default then msg = explanations[action][level].default elseif explanations[action].default and explanations[action].default[talkKey] then msg = explanations[action].default[talkKey] elseif explanations[action].default and explanations[action].default.default then msg = explanations[action].default.default else error(string.format( 'could not find explanation blurb for action "%s", level "%s" and talk key "%s"', action, level, talkKey ), 8) end return self:_substituteParameters(msg) end function Blurb:_makeImageLinkParameter() local imageLinks = self._cfg.imageLinks local action = self._protectionObj.action local level = self._protectionObj.level local msg if imageLinks[action][level] then msg = imageLinks[action][level] elseif imageLinks[action].default then msg = imageLinks[action].default else msg = imageLinks.edit.default end return self:_substituteParameters(msg) end function Blurb:_makeIntroBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-blurb-expiry') else return self:_getExpandedMessage('intro-blurb-noexpiry') end end function Blurb:_makeIntroFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('intro-fragment-expiry') else return self:_getExpandedMessage('intro-fragment-noexpiry') end end function Blurb:_makePagetypeParameter() local pagetypes = self._cfg.pagetypes return pagetypes[self._protectionObj.title.namespace] or pagetypes.default or error('no default pagetype defined', 8) end function Blurb:_makeProtectionBlurbParameter() local protectionBlurbs = self._cfg.protectionBlurbs local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionBlurbs[action][level] then msg = protectionBlurbs[action][level] elseif protectionBlurbs[action].default then msg = protectionBlurbs[action].default elseif protectionBlurbs.edit.default then msg = protectionBlurbs.edit.default else error('no protection blurb defined for protectionBlurbs.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionDateParameter() local protectionDate = self._protectionObj.protectionDate if type(protectionDate) == 'number' then return self:_formatDate(protectionDate) else return protectionDate end end function Blurb:_makeProtectionLevelParameter() local protectionLevels = self._cfg.protectionLevels local action = self._protectionObj.action local level = self._protectionObj.level local msg if protectionLevels[action][level] then msg = protectionLevels[action][level] elseif protectionLevels[action].default then msg = protectionLevels[action].default elseif protectionLevels.edit.default then msg = protectionLevels.edit.default else error('no protection level defined for protectionLevels.edit.default', 8) end return self:_substituteParameters(msg) end function Blurb:_makeProtectionLogParameter() local pagename = self._protectionObj.title.prefixedText if self._protectionObj.action == 'autoreview' then -- We need the pending changes log. return makeFullUrl( 'Special:Log', {type = 'stable', page = pagename}, self:_getExpandedMessage('pc-log-display') ) else -- We need the protection log. return makeFullUrl( 'Special:Log', {type = 'protect', page = pagename}, self:_getExpandedMessage('protection-log-display') ) end end function Blurb:_makeTalkPageParameter() return string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[self._protectionObj.title.namespace].talk.name, self._protectionObj.title.text, self._args.section or 'top', self:_getExpandedMessage('talk-page-link-display') ) end function Blurb:_makeTooltipBlurbParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-blurb-expiry') else return self:_getExpandedMessage('tooltip-blurb-noexpiry') end end function Blurb:_makeTooltipFragmentParameter() if self._protectionObj:isTemporary() then return self:_getExpandedMessage('tooltip-fragment-expiry') else return self:_getExpandedMessage('tooltip-fragment-noexpiry') end end function Blurb:_makeVandalTemplateParameter() return mw.getCurrentFrame():expandTemplate{ title="vandal-m", args={self._args.user or self._protectionObj.title.baseText} } end -- Public methods -- function Blurb:makeBannerText(key) -- Validate input. if not key or not Blurb.bannerTextFields[key] then error(string.format( '"%s" is not a valid banner config field', tostring(key) ), 2) end -- Generate the text. local msg = self._protectionObj.bannerConfig[key] if type(msg) == 'string' then return self:_substituteParameters(msg) elseif type(msg) == 'function' then msg = msg(self._protectionObj, self._args) if type(msg) ~= 'string' then error(string.format( 'bad output from banner config function with key "%s"' .. ' (expected string, got %s)', tostring(key), type(msg) ), 4) end return self:_substituteParameters(msg) end end -------------------------------------------------------------------------------- -- BannerTemplate class -------------------------------------------------------------------------------- local BannerTemplate = {} BannerTemplate.__index = BannerTemplate function BannerTemplate.new(protectionObj, cfg) local obj = {} obj._cfg = cfg -- Set the image filename. local imageFilename = protectionObj.bannerConfig.image if imageFilename then obj._imageFilename = imageFilename else -- If an image filename isn't specified explicitly in the banner config, -- generate it from the protection status and the namespace. local action = protectionObj.action local level = protectionObj.level local namespace = protectionObj.title.namespace local reason = protectionObj.reason -- Deal with special cases first. if ( namespace == 10 or namespace == 828 or reason and obj._cfg.indefImageReasons[reason] ) and action == 'edit' and level == 'sysop' and not protectionObj:isTemporary() then -- Fully protected modules and templates get the special red "indef" -- padlock. obj._imageFilename = obj._cfg.msg['image-filename-indef'] else -- Deal with regular protection types. local images = obj._cfg.images if images[action] then if images[action][level] then obj._imageFilename = images[action][level] elseif images[action].default then obj._imageFilename = images[action].default end end end end return setmetatable(obj, BannerTemplate) end function BannerTemplate:renderImage() local filename = self._imageFilename or self._cfg.msg['image-filename-default'] or 'Transparent.gif' return makeFileLink{ file = filename, size = (self.imageWidth or 20) .. 'px', alt = self._imageAlt, link = self._imageLink, caption = self.imageCaption } end -------------------------------------------------------------------------------- -- Banner class -------------------------------------------------------------------------------- local Banner = setmetatable({}, BannerTemplate) Banner.__index = Banner function Banner.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 40 obj.imageCaption = blurbObj:makeBannerText('alt') -- Large banners use the alt text for the tooltip. obj._reasonText = blurbObj:makeBannerText('text') obj._explanationText = blurbObj:makeBannerText('explanation') obj._page = protectionObj.title.prefixedText -- Only makes a difference in testing. return setmetatable(obj, Banner) end function Banner:__tostring() -- Renders the banner. makeMessageBox = makeMessageBox or require('Module:Message box').main local reasonText = self._reasonText or error('no reason text set', 2) local explanationText = self._explanationText local mbargs = { page = self._page, type = 'protection', image = self:renderImage(), text = string.format( "'''%s'''%s", reasonText, explanationText and '<br />' .. explanationText or '' ) } return makeMessageBox('mbox', mbargs) end -------------------------------------------------------------------------------- -- Padlock class -------------------------------------------------------------------------------- local Padlock = setmetatable({}, BannerTemplate) Padlock.__index = Padlock function Padlock.new(protectionObj, blurbObj, cfg) local obj = BannerTemplate.new(protectionObj, cfg) -- This doesn't need the blurb. obj.imageWidth = 20 obj.imageCaption = blurbObj:makeBannerText('tooltip') obj._imageAlt = blurbObj:makeBannerText('alt') obj._imageLink = blurbObj:makeBannerText('link') obj._indicatorName = cfg.padlockIndicatorNames[protectionObj.action] or cfg.padlockIndicatorNames.default or 'pp-default' return setmetatable(obj, Padlock) end function Padlock:__tostring() local frame = mw.getCurrentFrame() -- The nowiki tag helps prevent whitespace at the top of articles. return frame:extensionTag{name = 'nowiki'} .. frame:extensionTag{ name = 'indicator', args = {name = self._indicatorName}, content = self:renderImage() } end -------------------------------------------------------------------------------- -- Exports -------------------------------------------------------------------------------- local p = {} function p._exportClasses() -- This is used for testing purposes. return { Protection = Protection, Blurb = Blurb, BannerTemplate = BannerTemplate, Banner = Banner, Padlock = Padlock, } end function p._main(args, cfg, title) args = args or {} cfg = cfg or require(CONFIG_MODULE) local protectionObj = Protection.new(args, cfg, title) local ret = {} -- If a page's edit protection is equally or more restrictive than its -- protection from some other action, then don't bother displaying anything -- for the other action (except categories). if protectionObj.action == 'edit' or args.demolevel or not getReachableNodes( cfg.hierarchy, protectionObj.level )[effectiveProtectionLevel('edit', protectionObj.title)] then -- Initialise the blurb object local blurbObj = Blurb.new(protectionObj, args, cfg) -- Render the banner if protectionObj:shouldShowLock() then ret[#ret + 1] = tostring( (yesno(args.small) and Padlock or Banner) .new(protectionObj, blurbObj, cfg) ) end end -- Render the categories if yesno(args.category) ~= false then ret[#ret + 1] = protectionObj:makeCategoryLinks() end return table.concat(ret) end function p.main(frame, cfg) cfg = cfg or require(CONFIG_MODULE) -- Find default args, if any. local parent = frame.getParent and frame:getParent() local defaultArgs = parent and cfg.wrappers[parent:getTitle():gsub('/sandbox$', '')] -- Find user args, and use the parent frame if we are being called from a -- wrapper template. getArgs = getArgs or require('Module:Arguments').getArgs local userArgs = getArgs(frame, { parentOnly = defaultArgs, frameOnly = not defaultArgs }) -- Build the args table. User-specified args overwrite default args. local args = {} for k, v in pairs(defaultArgs or {}) do args[k] = v end for k, v in pairs(userArgs) do args[k] = v end return p._main(args, cfg) end return p 7bbb15eba52c066f6d5921829f2babbf616123a4 Module:Protection banner/config 828 65 136 135 2021-06-24T03:47:36Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -- This module provides configuration data for [[Module:Protection banner]]. return { -------------------------------------------------------------------------------- -- -- BANNER DATA -- -------------------------------------------------------------------------------- --[[ -- Banner data consists of six fields: -- * text - the main protection text that appears at the top of protection -- banners. -- * explanation - the text that appears below the main protection text, used -- to explain the details of the protection. -- * tooltip - the tooltip text you see when you move the mouse over a small -- padlock icon. -- * link - the page that the small padlock icon links to. -- * alt - the alt text for the small padlock icon. This is also used as tooltip -- text for the large protection banners. -- * image - the padlock image used in both protection banners and small padlock -- icons. -- -- The module checks in three separate tables to find a value for each field. -- First it checks the banners table, which has values specific to the reason -- for the page being protected. Then the module checks the defaultBanners -- table, which has values specific to each protection level. Finally, the -- module checks the masterBanner table, which holds data for protection -- templates to use if no data has been found in the previous two tables. -- -- The values in the banner data can take parameters. These are specified -- using ${TEXTLIKETHIS} (a dollar sign preceding a parameter name -- enclosed in curly braces). -- -- Available parameters: -- -- ${CURRENTVERSION} - a link to the page history or the move log, with the -- display message "current-version-edit-display" or -- "current-version-move-display". -- -- ${EDITREQUEST} - a link to create an edit request for the current page. -- -- ${EXPLANATIONBLURB} - an explanation blurb, e.g. "Please discuss any changes -- on the talk page; you may submit a request to ask an administrator to make -- an edit if it is minor or supported by consensus." -- -- ${IMAGELINK} - a link to set the image to, depending on the protection -- action and protection level. -- -- ${INTROBLURB} - the PROTECTIONBLURB parameter, plus the expiry if an expiry -- is set. E.g. "Editing of this page by new or unregistered users is currently -- disabled until dd Month YYYY." -- -- ${INTROFRAGMENT} - the same as ${INTROBLURB}, but without final punctuation -- so that it can be used in run-on sentences. -- -- ${PAGETYPE} - the type of the page, e.g. "article" or "template". -- Defined in the cfg.pagetypes table. -- -- ${PROTECTIONBLURB} - a blurb explaining the protection level of the page, e.g. -- "Editing of this page by new or unregistered users is currently disabled" -- -- ${PROTECTIONDATE} - the protection date, if it has been supplied to the -- template. -- -- ${PROTECTIONLEVEL} - the protection level, e.g. "fully protected" or -- "semi-protected". -- -- ${PROTECTIONLOG} - a link to the protection log or the pending changes log, -- depending on the protection action. -- -- ${TALKPAGE} - a link to the talk page. If a section is specified, links -- straight to that talk page section. -- -- ${TOOLTIPBLURB} - uses the PAGETYPE, PROTECTIONTYPE and EXPIRY parameters to -- create a blurb like "This template is semi-protected", or "This article is -- move-protected until DD Month YYYY". -- -- ${VANDAL} - links for the specified username (or the root page name) -- using Module:Vandal-m. -- -- Functions -- -- For advanced users, it is possible to use Lua functions instead of strings -- in the banner config tables. Using functions gives flexibility that is not -- possible just by using parameters. Functions take two arguments, the -- protection object and the template arguments, and they must output a string. -- -- For example: -- -- text = function (protectionObj, args) -- if protectionObj.level == 'autoconfirmed' then -- return 'foo' -- else -- return 'bar' -- end -- end -- -- Some protection object properties and methods that may be useful: -- protectionObj.action - the protection action -- protectionObj.level - the protection level -- protectionObj.reason - the protection reason -- protectionObj.expiry - the expiry. Nil if unset, the string "indef" if set -- to indefinite, and the protection time in unix time if temporary. -- protectionObj.protectionDate - the protection date in unix time, or nil if -- unspecified. -- protectionObj.bannerConfig - the banner config found by the module. Beware -- of editing the config field used by the function, as it could create an -- infinite loop. -- protectionObj:isProtected - returns a boolean showing whether the page is -- protected. -- protectionObj:isTemporary - returns a boolean showing whether the expiry is -- temporary. -- protectionObj:isIncorrect - returns a boolean showing whether the protection -- template is incorrect. --]] -- The master banner data, used if no values have been found in banners or -- defaultBanners. masterBanner = { text = '${INTROBLURB}', explanation = '${EXPLANATIONBLURB}', tooltip = '${TOOLTIPBLURB}', link = '${IMAGELINK}', alt = 'Page ${PROTECTIONLEVEL}' }, -- The default banner data. This holds banner data for different protection -- levels. -- *required* - this table needs edit, move, autoreview and upload subtables. defaultBanners = { edit = {}, move = {}, autoreview = { default = { alt = 'Page protected with pending changes', tooltip = 'All edits by unregistered and new users are subject to review prior to becoming visible to unregistered users', image = 'Pending-protection-shackle.svg' } }, upload = {} }, -- The banner data. This holds banner data for different protection reasons. -- In fact, the reasons specified in this table control which reasons are -- valid inputs to the first positional parameter. -- -- There is also a non-standard "description" field that can be used for items -- in this table. This is a description of the protection reason for use in the -- module documentation. -- -- *required* - this table needs edit, move, autoreview and upload subtables. banners = { edit = { blp = { description = 'For pages protected to promote compliance with the' .. ' [[Wikipedia:Biographies of living persons' .. '|biographies of living persons]] policy', text = '${INTROFRAGMENT} to promote compliance with' .. ' [[Wikipedia:Biographies of living persons' .. "|Wikipedia's&nbsp;policy on&nbsp;the&nbsp;biographies" .. ' of&nbsp;living&nbsp;people]].', tooltip = '${TOOLTIPFRAGMENT} to promote compliance with the policy on' .. ' biographies of living persons', }, dmca = { description = 'For pages protected by the Wikimedia Foundation' .. ' due to [[Digital Millennium Copyright Act]] takedown requests', explanation = function (protectionObj, args) local ret = 'Pursuant to a rights owner notice under the Digital' .. ' Millennium Copyright Act (DMCA) regarding some content' .. ' in this article, the Wikimedia Foundation acted under' .. ' applicable law and took down and restricted the content' .. ' in question.' if args.notice then ret = ret .. ' A copy of the received notice can be found here: ' .. args.notice .. '.' end ret = ret .. ' For more information, including websites discussing' .. ' how to file a counter-notice, please see' .. " [[Wikipedia:Office actions]] and the article's ${TALKPAGE}." .. "'''Do not remove this template from the article until the" .. " restrictions are withdrawn'''." return ret end, image = 'Office-protection-shackle.svg', }, dispute = { description = 'For pages protected due to editing disputes', text = function (protectionObj, args) -- Find the value of "disputes". local display = 'disputes' local disputes if args.section then disputes = string.format( '[[%s:%s#%s|%s]]', mw.site.namespaces[protectionObj.title.namespace].talk.name, protectionObj.title.text, args.section, display ) else disputes = display end -- Make the blurb, depending on the expiry. local msg if type(protectionObj.expiry) == 'number' then msg = '${INTROFRAGMENT} or until editing %s have been resolved.' else msg = '${INTROFRAGMENT} until editing %s have been resolved.' end return string.format(msg, disputes) end, explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', tooltip = '${TOOLTIPFRAGMENT} due to editing disputes', }, ecp = { description = 'For articles in topic areas authorized by' .. ' [[Wikipedia:Arbitration Committee|ArbCom]] or' .. ' meets the criteria for community use', tooltip = 'This ${PAGETYPE} is extended-confirmed protected', alt = 'Extended-protected ${PAGETYPE}', }, mainpage = { description = 'For pages protected for being displayed on the [[Main Page]]', text = 'This file is currently' .. ' [[Wikipedia:This page is protected|protected]] from' .. ' editing because it is currently or will soon be displayed' .. ' on the [[Main Page]].', explanation = 'Images on the Main Page are protected due to their high' .. ' visibility. Please discuss any necessary changes on the ${TALKPAGE}.' .. '<br /><span style="font-size:90%;">' .. "'''Administrators:''' Once this image is definitely off the Main Page," .. ' please unprotect this file, or reduce to semi-protection,' .. ' as appropriate.</span>', }, office = { description = 'For pages protected by the Wikimedia Foundation', text = function (protectionObj, args) local ret = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.' if protectionObj.protectionDate then ret = ret .. ' It has been protected since ${PROTECTIONDATE}.' end return ret end, explanation = "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not remove protection from this" .. " page unless you are authorized by the Wikimedia Foundation to do" .. " so.'''", image = 'Office-protection-shackle.svg', }, reset = { description = 'For pages protected by the Wikimedia Foundation and' .. ' "reset" to a bare-bones version', text = 'This ${PAGETYPE} is currently under the' .. ' scrutiny of the' .. ' [[Wikipedia:Office actions|Wikimedia Foundation Office]]' .. ' and is protected.', explanation = function (protectionObj, args) local ret = '' if protectionObj.protectionDate then ret = ret .. 'On ${PROTECTIONDATE} this ${PAGETYPE} was' else ret = ret .. 'This ${PAGETYPE} has been' end ret = ret .. ' reduced to a' .. ' simplified, "bare bones" version so that it may be completely' .. ' rewritten to ensure it meets the policies of' .. ' [[WP:NPOV|Neutral Point of View]] and [[WP:V|Verifiability]].' .. ' Standard Wikipedia policies will apply to its rewriting—which' .. ' will eventually be open to all editors—and will be strictly' .. ' enforced. The ${PAGETYPE} has been ${PROTECTIONLEVEL} while' .. ' it is being rebuilt.\n\n' .. 'Any insertion of material directly from' .. ' pre-protection revisions of the ${PAGETYPE} will be removed, as' .. ' will any material added to the ${PAGETYPE} that is not properly' .. ' sourced. The associated talk page(s) were also cleared on the' .. " same date.\n\n" .. "If you can edit this page, please discuss all changes and" .. " additions on the ${TALKPAGE} first. '''Do not override" .. " this action, and do not remove protection from this page," .. " unless you are authorized by the Wikimedia Foundation" .. " to do so. No editor may remove this notice.'''" return ret end, image = 'Office-protection-shackle.svg', }, sock = { description = 'For pages protected due to' .. ' [[Wikipedia:Sock puppetry|sock puppetry]]', text = '${INTROFRAGMENT} to prevent [[Wikipedia:Sock puppetry|sock puppets]] of' .. ' [[Wikipedia:Blocking policy|blocked]] or' .. ' [[Wikipedia:Banning policy|banned users]]' .. ' from editing it.', tooltip = '${TOOLTIPFRAGMENT} to prevent sock puppets of blocked or banned users from' .. ' editing it', }, template = { description = 'For [[Wikipedia:High-risk templates|high-risk]]' .. ' templates and Lua modules', text = 'This is a permanently [[Help:Protection|protected]] ${PAGETYPE},' .. ' as it is [[Wikipedia:High-risk templates|high-risk]].', explanation = 'Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] or' .. ' [[Wikipedia:Template editor|template editor]] to make an edit if' .. ' it is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by' .. ' [[Wikipedia:Consensus|consensus]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.', tooltip = 'This high-risk ${PAGETYPE} is permanently ${PROTECTIONLEVEL}' .. ' to prevent vandalism', alt = 'Permanently protected ${PAGETYPE}', }, usertalk = { description = 'For pages protected against disruptive edits by a' .. ' particular user', text = '${INTROFRAGMENT} to prevent ${VANDAL} from using it to make disruptive edits,' .. ' such as abusing the' .. ' &#123;&#123;[[Template:unblock|unblock]]&#125;&#125; template.', explanation = 'If you cannot edit this user talk page and you need to' .. ' make a change or leave a message, you can' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for edits to a protected page' .. '|request an edit]],' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]],' .. ' [[Special:Userlogin|log in]],' .. ' or [[Special:UserLogin/signup|create an account]].', }, vandalism = { description = 'For pages protected against' .. ' [[Wikipedia:Vandalism|vandalism]]', text = '${INTROFRAGMENT} due to [[Wikipedia:Vandalism|vandalism]].', explanation = function (protectionObj, args) local ret = '' if protectionObj.level == 'sysop' then ret = ret .. "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ' end return ret .. '${EXPLANATIONBLURB}' end, tooltip = '${TOOLTIPFRAGMENT} due to vandalism', } }, move = { dispute = { description = 'For pages protected against page moves due to' .. ' disputes over the page title', explanation = "This protection is '''not''' an endorsement of the" .. ' ${CURRENTVERSION}. ${EXPLANATIONBLURB}', image = 'Move-protection-shackle.svg' }, vandalism = { description = 'For pages protected against' .. ' [[Wikipedia:Vandalism#Page-move vandalism' .. ' |page-move vandalism]]' } }, autoreview = {}, upload = {} }, -------------------------------------------------------------------------------- -- -- GENERAL DATA TABLES -- -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- -- Protection blurbs -------------------------------------------------------------------------------- -- This table produces the protection blurbs available with the -- ${PROTECTIONBLURB} parameter. It is sorted by protection action and -- protection level, and is checked by the module in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionBlurbs = { edit = { default = 'This ${PAGETYPE} is currently [[Help:Protection|' .. 'protected]] from editing', autoconfirmed = 'Editing of this ${PAGETYPE} by [[Wikipedia:User access' .. ' levels#New users|new]] or [[Wikipedia:User access levels#Unregistered' .. ' users|unregistered]] users is currently [[Help:Protection|disabled]]', extendedconfirmed = 'This ${PAGETYPE} is currently under extended confirmed protection', }, move = { default = 'This ${PAGETYPE} is currently [[Help:Protection|protected]]' .. ' from [[Help:Moving a page|page moves]]' }, autoreview = { default = 'All edits made to this ${PAGETYPE} by' .. ' [[Wikipedia:User access levels#New users|new]] or' .. ' [[Wikipedia:User access levels#Unregistered users|unregistered]]' .. ' users are currently' .. ' [[Wikipedia:Pending changes|subject to review]]' }, upload = { default = 'Uploading new versions of this ${PAGETYPE} is currently disabled' } }, -------------------------------------------------------------------------------- -- Explanation blurbs -------------------------------------------------------------------------------- -- This table produces the explanation blurbs available with the -- ${EXPLANATIONBLURB} parameter. It is sorted by protection action, -- protection level, and whether the page is a talk page or not. If the page is -- a talk page it will have a talk key of "talk"; otherwise it will have a talk -- key of "subject". The table is checked in the following order: -- 1. page's protection action, page's protection level, page's talk key -- 2. page's protection action, page's protection level, default talk key -- 3. page's protection action, default protection level, page's talk key -- 4. page's protection action, default protection level, default talk key -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. explanationBlurbs = { edit = { autoconfirmed = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' .. ' ${EDITREQUEST}, discuss changes on the ${TALKPAGE},' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details. If you' .. ' cannot edit this ${PAGETYPE} and you wish to make a change, you can' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].', }, extendedconfirmed = { default = 'Extended confirmed protection prevents edits from all unregistered editors' .. ' and registered users with fewer than 30 days tenure and 500 edits.' .. ' The [[Wikipedia:Protection policy#extended|policy on community use]]' .. ' specifies that extended confirmed protection can be applied to combat' .. ' disruption, if semi-protection has proven to be ineffective.' .. ' Extended confirmed protection may also be applied to enforce' .. ' [[Wikipedia:Arbitration Committee|arbitration sanctions]].' .. ' Please discuss any changes on the ${TALKPAGE}; you may' .. ' ${EDITREQUEST} to ask for uncontroversial changes supported by' .. ' [[Wikipedia:Consensus|consensus]].' }, default = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Please discuss any changes on the ${TALKPAGE}; you' .. ' may ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' .. '|consensus]]. You may also [[Wikipedia:Requests for' .. ' page protection#Current requests for reduction in protection level' .. '|request]] that this page be unprotected.', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' You may [[Wikipedia:Requests for page' .. ' protection#Current requests for edits to a protected page|request an' .. ' edit]] to this page, or [[Wikipedia:Requests for' .. ' page protection#Current requests for reduction in protection level' .. '|ask]] for it to be unprotected.' } }, move = { default = { subject = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but cannot be moved' .. ' until unprotected. Please discuss any suggested moves on the' .. ' ${TALKPAGE} or at [[Wikipedia:Requested moves]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.', default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but cannot be moved' .. ' until unprotected. Please discuss any suggested moves at' .. ' [[Wikipedia:Requested moves]]. You can also' .. ' [[Wikipedia:Requests for page protection|request]] that the page be' .. ' unprotected.' } }, autoreview = { default = { default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Edits to this ${PAGETYPE} by new and unregistered users' .. ' will not be visible to readers until they are accepted by' .. ' a reviewer. To avoid the need for your edits to be' .. ' reviewed, you may' .. ' [[Wikipedia:Requests for page protection' .. '#Current requests for reduction in protection level' .. '|request unprotection]], [[Special:Userlogin|log in]], or' .. ' [[Special:UserLogin/signup|create an account]].' }, }, upload = { default = { default = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' The page may still be edited but new versions of the file' .. ' cannot be uploaded until it is unprotected. You can' .. ' request that a new version be uploaded by using a' .. ' [[Wikipedia:Edit requests|protected edit request]], or you' .. ' can [[Wikipedia:Requests for page protection|request]]' .. ' that the file be unprotected.' } } }, -------------------------------------------------------------------------------- -- Protection levels -------------------------------------------------------------------------------- -- This table provides the data for the ${PROTECTIONLEVEL} parameter, which -- produces a short label for different protection levels. It is sorted by -- protection action and protection level, and is checked in the following -- order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. protectionLevels = { edit = { default = 'protected', templateeditor = 'template-protected', extendedconfirmed = 'extended-protected', autoconfirmed = 'semi-protected', }, move = { default = 'move-protected' }, autoreview = { }, upload = { default = 'upload-protected' } }, -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- This table lists different padlock images for each protection action and -- protection level. It is used if an image is not specified in any of the -- banner data tables, and if the page does not satisfy the conditions for using -- the ['image-filename-indef'] image. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level images = { edit = { default = 'Full-protection-shackle.svg', templateeditor = 'Template-protection-shackle.svg', extendedconfirmed = 'Extended-protection-shackle.svg', autoconfirmed = 'Semi-protection-shackle.svg' }, move = { default = 'Move-protection-shackle.svg', }, autoreview = { default = 'Pending-protection-shackle.svg' }, upload = { default = 'Upload-protection-shackle.svg' } }, -- Pages with a reason specified in this table will show the special "indef" -- padlock, defined in the 'image-filename-indef' message, if no expiry is set. indefImageReasons = { template = true }, -------------------------------------------------------------------------------- -- Image links -------------------------------------------------------------------------------- -- This table provides the data for the ${IMAGELINK} parameter, which gets -- the image link for small padlock icons based on the page's protection action -- and protection level. It is checked in the following order: -- 1. page's protection action, page's protection level -- 2. page's protection action, default protection level -- 3. "edit" protection action, default protection level -- -- It is possible to use banner parameters inside this table. -- *required* - this table needs edit, move, autoreview and upload subtables. imageLinks = { edit = { default = 'Wikipedia:Protection policy#full', templateeditor = 'Wikipedia:Protection policy#template', extendedconfirmed = 'Wikipedia:Protection policy#extended', autoconfirmed = 'Wikipedia:Protection policy#semi' }, move = { default = 'Wikipedia:Protection policy#move' }, autoreview = { default = 'Wikipedia:Protection policy#pending' }, upload = { default = 'Wikipedia:Protection policy#upload' } }, -------------------------------------------------------------------------------- -- Padlock indicator names -------------------------------------------------------------------------------- -- This table provides the "name" attribute for the <indicator> extension tag -- with which small padlock icons are generated. All indicator tags on a page -- are displayed in alphabetical order based on this attribute, and with -- indicator tags with duplicate names, the last tag on the page wins. -- The attribute is chosen based on the protection action; table keys must be a -- protection action name or the string "default". padlockIndicatorNames = { autoreview = 'pp-autoreview', default = 'pp-default' }, -------------------------------------------------------------------------------- -- Protection categories -------------------------------------------------------------------------------- --[[ -- The protection categories are stored in the protectionCategories table. -- Keys to this table are made up of the following strings: -- -- 1. the expiry date -- 2. the namespace -- 3. the protection reason (e.g. "dispute" or "vandalism") -- 4. the protection level (e.g. "sysop" or "autoconfirmed") -- 5. the action (e.g. "edit" or "move") -- -- When the module looks up a category in the table, first it will will check to -- see a key exists that corresponds to all five parameters. For example, a -- user page semi-protected from vandalism for two weeks would have the key -- "temp-user-vandalism-autoconfirmed-edit". If no match is found, the module -- changes the first part of the key to "all" and checks the table again. It -- keeps checking increasingly generic key combinations until it finds the -- field, or until it reaches the key "all-all-all-all-all". -- -- The module uses a binary matrix to determine the order in which to search. -- This is best demonstrated by a table. In this table, the "0" values -- represent "all", and the "1" values represent the original data (e.g. -- "indef" or "file" or "vandalism"). -- -- expiry namespace reason level action -- order -- 1 1 1 1 1 1 -- 2 0 1 1 1 1 -- 3 1 0 1 1 1 -- 4 0 0 1 1 1 -- 5 1 1 0 1 1 -- 6 0 1 0 1 1 -- 7 1 0 0 1 1 -- 8 0 0 0 1 1 -- 9 1 1 1 0 1 -- 10 0 1 1 0 1 -- 11 1 0 1 0 1 -- 12 0 0 1 0 1 -- 13 1 1 0 0 1 -- 14 0 1 0 0 1 -- 15 1 0 0 0 1 -- 16 0 0 0 0 1 -- 17 1 1 1 1 0 -- 18 0 1 1 1 0 -- 19 1 0 1 1 0 -- 20 0 0 1 1 0 -- 21 1 1 0 1 0 -- 22 0 1 0 1 0 -- 23 1 0 0 1 0 -- 24 0 0 0 1 0 -- 25 1 1 1 0 0 -- 26 0 1 1 0 0 -- 27 1 0 1 0 0 -- 28 0 0 1 0 0 -- 29 1 1 0 0 0 -- 30 0 1 0 0 0 -- 31 1 0 0 0 0 -- 32 0 0 0 0 0 -- -- In this scheme the action has the highest priority, as it is the last -- to change, and the expiry has the least priority, as it changes the most. -- The priorities of the expiry, the protection level and the action are -- fixed, but the priorities of the reason and the namespace can be swapped -- through the use of the cfg.bannerDataNamespaceHasPriority table. --]] -- If the reason specified to the template is listed in this table, -- namespace data will take priority over reason data in the protectionCategories -- table. reasonsWithNamespacePriority = { vandalism = true, }, -- The string to use as a namespace key for the protectionCategories table for each -- namespace number. categoryNamespaceKeys = { [ 2] = 'user', [ 3] = 'user', [ 4] = 'project', [ 6] = 'file', [ 8] = 'mediawiki', [ 10] = 'template', [ 12] = 'project', [ 14] = 'category', [100] = 'portal', [828] = 'module', }, protectionCategories = { ['all|all|all|all|all'] = 'Wikipedia fully protected pages', ['all|all|office|all|all'] = 'Wikipedia Office-protected pages', ['all|all|reset|all|all'] = 'Wikipedia Office-protected pages', ['all|all|dmca|all|all'] = 'Wikipedia Office-protected pages', ['all|all|mainpage|all|all'] = 'Wikipedia fully-protected main page files', ['all|all|all|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|all|ecp|extendedconfirmed|all'] = 'Wikipedia extended-confirmed-protected pages', ['all|template|all|all|edit'] = 'Wikipedia fully protected templates', ['all|all|all|autoconfirmed|edit'] = 'Wikipedia semi-protected pages', ['indef|all|all|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected pages', ['all|all|blp|autoconfirmed|edit'] = 'Wikipedia indefinitely semi-protected biographies of living people', ['temp|all|blp|autoconfirmed|edit'] = 'Wikipedia temporarily semi-protected biographies of living people', ['all|all|dispute|autoconfirmed|edit'] = 'Wikipedia pages semi-protected due to dispute', ['all|all|sock|autoconfirmed|edit'] = 'Wikipedia pages semi-protected from banned users', ['all|all|vandalism|autoconfirmed|edit'] = 'Wikipedia pages semi-protected against vandalism', ['all|category|all|autoconfirmed|edit'] = 'Wikipedia semi-protected categories', ['all|file|all|autoconfirmed|edit'] = 'Wikipedia semi-protected files', ['all|portal|all|autoconfirmed|edit'] = 'Wikipedia semi-protected portals', ['all|project|all|autoconfirmed|edit'] = 'Wikipedia semi-protected project pages', ['all|talk|all|autoconfirmed|edit'] = 'Wikipedia semi-protected talk pages', ['all|template|all|autoconfirmed|edit'] = 'Wikipedia semi-protected templates', ['all|user|all|autoconfirmed|edit'] = 'Wikipedia semi-protected user and user talk pages', ['all|template|all|templateeditor|edit'] = 'Wikipedia template-protected templates', ['all|template|all|templateeditor|move'] = 'Wikipedia template-protected templates', -- move-protected ['all|all|blp|sysop|edit'] = 'Wikipedia indefinitely protected biographies of living people', ['temp|all|blp|sysop|edit'] = 'Wikipedia temporarily protected biographies of living people', ['all|all|dispute|sysop|edit'] = 'Wikipedia pages protected due to dispute', ['all|all|sock|sysop|edit'] = 'Wikipedia pages protected from banned users', ['all|all|vandalism|sysop|edit'] = 'Wikipedia pages protected against vandalism', ['all|category|all|sysop|edit'] = 'Wikipedia fully protected categories', ['all|file|all|sysop|edit'] = 'Wikipedia fully-protected files', ['all|project|all|sysop|edit'] = 'Wikipedia fully-protected project pages', ['all|talk|all|sysop|edit'] = 'Wikipedia fully-protected talk pages', ['all|template|all|extendedconfirmed|edit'] = 'Wikipedia extended-confirmed-protected templates', ['all|template|all|sysop|edit'] = 'Wikipedia fully protected templates', ['all|user|all|sysop|edit'] = 'Wikipedia fully protected user and user talk pages', ['all|module|all|all|edit'] = 'Wikipedia fully-protected modules', ['all|module|all|templateeditor|edit'] = 'Wikipedia template-protected modules', ['all|module|all|autoconfirmed|edit'] = 'Wikipedia semi-protected modules', ['all|all|all|sysop|move'] = 'Wikipedia move-protected pages', ['indef|all|all|sysop|move'] = 'Wikipedia indefinitely move-protected pages', ['all|all|dispute|sysop|move'] = 'Wikipedia pages move-protected due to dispute', ['all|all|vandalism|sysop|move'] = 'Wikipedia pages move-protected due to vandalism', ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', ['all|portal|all|sysop|move'] = 'Wikipedia move-protected portals', ['all|project|all|sysop|move'] = 'Wikipedia move-protected project pages', ['all|talk|all|sysop|move'] = 'Wikipedia move-protected talk pages', ['all|template|all|sysop|move'] = 'Wikipedia move-protected templates', ['all|user|all|sysop|move'] = 'Wikipedia move-protected user and user talk pages', ['all|all|all|autoconfirmed|autoreview'] = 'Wikipedia pending changes protected pages', ['all|file|all|all|upload'] = 'Wikipedia upload-protected files', }, -------------------------------------------------------------------------------- -- Expiry category config -------------------------------------------------------------------------------- -- This table configures the expiry category behaviour for each protection -- action. -- * If set to true, setting that action will always categorise the page if -- an expiry parameter is not set. -- * If set to false, setting that action will never categorise the page. -- * If set to nil, the module will categorise the page if: -- 1) an expiry parameter is not set, and -- 2) a reason is provided, and -- 3) the specified reason is not blacklisted in the reasonsWithoutExpiryCheck -- table. expiryCheckActions = { edit = nil, move = false, autoreview = true, upload = false }, reasonsWithoutExpiryCheck = { blp = true, template = true, }, -------------------------------------------------------------------------------- -- Pagetypes -------------------------------------------------------------------------------- -- This table produces the page types available with the ${PAGETYPE} parameter. -- Keys are namespace numbers, or the string "default" for the default value. pagetypes = { [0] = 'article', [6] = 'file', [10] = 'template', [14] = 'category', [828] = 'module', default = 'page' }, -------------------------------------------------------------------------------- -- Strings marking indefinite protection -------------------------------------------------------------------------------- -- This table contains values passed to the expiry parameter that mean the page -- is protected indefinitely. indefStrings = { ['indef'] = true, ['indefinite'] = true, ['indefinitely'] = true, ['infinite'] = true, }, -------------------------------------------------------------------------------- -- Group hierarchy -------------------------------------------------------------------------------- -- This table maps each group to all groups that have a superset of the original -- group's page editing permissions. hierarchy = { sysop = {}, reviewer = {'sysop'}, filemover = {'sysop'}, templateeditor = {'sysop'}, extendedconfirmed = {'sysop'}, autoconfirmed = {'reviewer', 'filemover', 'templateeditor', 'extendedconfirmed'}, user = {'autoconfirmed'}, ['*'] = {'user'} }, -------------------------------------------------------------------------------- -- Wrapper templates and their default arguments -------------------------------------------------------------------------------- -- This table contains wrapper templates used with the module, and their -- default arguments. Templates specified in this table should contain the -- following invocation, and no other template content: -- -- {{#invoke:Protection banner|main}} -- -- If other content is desired, it can be added between -- <noinclude>...</noinclude> tags. -- -- When a user calls one of these wrapper templates, they will use the -- default arguments automatically. However, users can override any of the -- arguments. wrappers = { ['Template:Pp'] = {}, ['Template:Pp-extended'] = {'ecp'}, ['Template:Pp-blp'] = {'blp'}, -- we don't need Template:Pp-create ['Template:Pp-dispute'] = {'dispute'}, ['Template:Pp-main-page'] = {'mainpage'}, ['Template:Pp-move'] = {action = 'move'}, ['Template:Pp-move-dispute'] = {'dispute', action = 'move'}, -- we don't need Template:Pp-move-indef ['Template:Pp-move-vandalism'] = {'vandalism', action = 'move'}, ['Template:Pp-office'] = {'office'}, ['Template:Pp-office-dmca'] = {'dmca'}, ['Template:Pp-pc'] = {action = 'autoreview', small = true}, ['Template:Pp-pc1'] = {action = 'autoreview', small = true}, ['Template:Pp-reset'] = {'reset'}, ['Template:Pp-semi-indef'] = {small = true}, ['Template:Pp-sock'] = {'sock'}, ['Template:Pp-template'] = {'template', small = true}, ['Template:Pp-upload'] = {action = 'upload'}, ['Template:Pp-usertalk'] = {'usertalk'}, ['Template:Pp-vandalism'] = {'vandalism'}, }, -------------------------------------------------------------------------------- -- -- MESSAGES -- -------------------------------------------------------------------------------- msg = { -------------------------------------------------------------------------------- -- Intro blurb and intro fragment -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${INTROBLURB} and -- ${INTROFRAGMENT} parameters. If the protection is temporary they use the -- intro-blurb-expiry or intro-fragment-expiry, and if not they use -- intro-blurb-noexpiry or intro-fragment-noexpiry. -- It is possible to use banner parameters in these messages. ['intro-blurb-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY}.', ['intro-blurb-noexpiry'] = '${PROTECTIONBLURB}.', ['intro-fragment-expiry'] = '${PROTECTIONBLURB} until ${EXPIRY},', ['intro-fragment-noexpiry'] = '${PROTECTIONBLURB}', -------------------------------------------------------------------------------- -- Tooltip blurb -------------------------------------------------------------------------------- -- These messages specify what is produced by the ${TOOLTIPBLURB} parameter. -- If the protection is temporary the tooltip-blurb-expiry message is used, and -- if not the tooltip-blurb-noexpiry message is used. -- It is possible to use banner parameters in these messages. ['tooltip-blurb-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY}.', ['tooltip-blurb-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}.', ['tooltip-fragment-expiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL} until ${EXPIRY},', ['tooltip-fragment-noexpiry'] = 'This ${PAGETYPE} is ${PROTECTIONLEVEL}', -------------------------------------------------------------------------------- -- Special explanation blurb -------------------------------------------------------------------------------- -- An explanation blurb for pages that cannot be unprotected, e.g. for pages -- in the MediaWiki namespace. -- It is possible to use banner parameters in this message. ['explanation-blurb-nounprotect'] = 'See the [[Wikipedia:Protection policy|' .. 'protection policy]] and ${PROTECTIONLOG} for more details.' .. ' Please discuss any changes on the ${TALKPAGE}; you' .. ' may ${EDITREQUEST} to ask an' .. ' [[Wikipedia:Administrators|administrator]] to make an edit if it' .. ' is [[Help:Minor edit#When to mark an edit as a minor edit' .. '|uncontroversial]] or supported by [[Wikipedia:Consensus' .. '|consensus]].', -------------------------------------------------------------------------------- -- Protection log display values -------------------------------------------------------------------------------- -- These messages determine the display values for the protection log link -- or the pending changes log link produced by the ${PROTECTIONLOG} parameter. -- It is possible to use banner parameters in these messages. ['protection-log-display'] = 'protection log', ['pc-log-display'] = 'pending changes log', -------------------------------------------------------------------------------- -- Current version display values -------------------------------------------------------------------------------- -- These messages determine the display values for the page history link -- or the move log link produced by the ${CURRENTVERSION} parameter. -- It is possible to use banner parameters in these messages. ['current-version-move-display'] = 'current title', ['current-version-edit-display'] = 'current version', -------------------------------------------------------------------------------- -- Talk page -------------------------------------------------------------------------------- -- This message determines the display value of the talk page link produced -- with the ${TALKPAGE} parameter. -- It is possible to use banner parameters in this message. ['talk-page-link-display'] = 'talk page', -------------------------------------------------------------------------------- -- Edit requests -------------------------------------------------------------------------------- -- This message determines the display value of the edit request link produced -- with the ${EDITREQUEST} parameter. -- It is possible to use banner parameters in this message. ['edit-request-display'] = 'submit an edit request', -------------------------------------------------------------------------------- -- Expiry date format -------------------------------------------------------------------------------- -- This is the format for the blurb expiry date. It should be valid input for -- the first parameter of the #time parser function. ['expiry-date-format'] = 'F j, Y "at" H:i e', -------------------------------------------------------------------------------- -- Tracking categories -------------------------------------------------------------------------------- -- These messages determine which tracking categories the module outputs. ['tracking-category-incorrect'] = 'Wikipedia pages with incorrect protection templates', ['tracking-category-template'] = 'Wikipedia template-protected pages other than templates and modules', -------------------------------------------------------------------------------- -- Images -------------------------------------------------------------------------------- -- These are images that are not defined by their protection action and protection level. ['image-filename-indef'] = 'Full-protection-shackle.svg', ['image-filename-default'] = 'Transparent.gif', -------------------------------------------------------------------------------- -- End messages -------------------------------------------------------------------------------- } -------------------------------------------------------------------------------- -- End configuration -------------------------------------------------------------------------------- } 2ffdf2aef6e0180ca9dae7541ea1a0a34477e8be Module:String 828 66 138 137 2021-06-24T03:47:36Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain --[[ This module is intended to provide access to basic string functions. Most of the functions provided here can be invoked with named parameters, unnamed parameters, or a mixture. If named parameters are used, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. Depending on the intended use, it may be advantageous to either preserve or remove such whitespace. Global options ignore_errors: If set to 'true' or 1, any error condition will result in an empty string being returned rather than an error message. error_category: If an error occurs, specifies the name of a category to include with the error message. The default category is [Category:Errors reported by Module String]. no_category: If set to 'true' or 1, no category will be added if an error is generated. Unit tests for this module are available at Module:String/tests. ]] local str = {} --[[ len This function returns the length of the target string. Usage: {{#invoke:String|len|target_string|}} OR {{#invoke:String|len|s=target_string}} Parameters s: The string whose length to report If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the target string. ]] function str.len( frame ) local new_args = str._getParameters( frame.args, {'s'} ) local s = new_args['s'] or '' return mw.ustring.len( s ) end --[[ sub This function returns a substring of the target string at specified indices. Usage: {{#invoke:String|sub|target_string|start_index|end_index}} OR {{#invoke:String|sub|s=target_string|i=start_index|j=end_index}} Parameters s: The string to return a subset of i: The fist index of the substring to return, defaults to 1. j: The last index of the string to return, defaults to the last character. The first character of the string is assigned an index of 1. If either i or j is a negative value, it is interpreted the same as selecting a character by counting from the end of the string. Hence, a value of -1 is the same as selecting the last character of the string. If the requested indices are out of range for the given string, an error is reported. ]] function str.sub( frame ) local new_args = str._getParameters( frame.args, { 's', 'i', 'j' } ) local s = new_args['s'] or '' local i = tonumber( new_args['i'] ) or 1 local j = tonumber( new_args['j'] ) or -1 local len = mw.ustring.len( s ) -- Convert negatives for range checking if i < 0 then i = len + i + 1 end if j < 0 then j = len + j + 1 end if i > len or j > len or i < 1 or j < 1 then return str._error( 'String subset index out of range' ) end if j < i then return str._error( 'String subset indices out of order' ) end return mw.ustring.sub( s, i, j ) end --[[ This function implements that features of {{str sub old}} and is kept in order to maintain these older templates. ]] function str.sublength( frame ) local i = tonumber( frame.args.i ) or 0 local len = tonumber( frame.args.len ) return mw.ustring.sub( frame.args.s, i + 1, len and ( i + len ) ) end --[[ _match This function returns a substring from the source string that matches a specified pattern. It is exported for use in other modules Usage: strmatch = require("Module:String")._match sresult = strmatch( s, pattern, start, match, plain, nomatch ) Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start the search. The first character of the string has index 1. Defaults to 1. match: In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1. plain: A flag indicating that the pattern should be understood as plain text. Defaults to false. nomatch: If no match is found, output the "nomatch" value rather than an error. For information on constructing Lua patterns, a form of [regular expression], see: * http://www.lua.org/manual/5.1/manual.html#5.4.1 * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns ]] -- This sub-routine is exported for use in other modules function str._match( s, pattern, start, match_index, plain_flag, nomatch ) if s == '' then return str._error( 'Target string is empty' ) end if pattern == '' then return str._error( 'Pattern string is empty' ) end start = tonumber(start) or 1 if math.abs(start) < 1 or math.abs(start) > mw.ustring.len( s ) then return str._error( 'Requested start is out of range' ) end if match_index == 0 then return str._error( 'Match index is out of range' ) end if plain_flag then pattern = str._escapePattern( pattern ) end local result if match_index == 1 then -- Find first match is simple case result = mw.ustring.match( s, pattern, start ) else if start > 1 then s = mw.ustring.sub( s, start ) end local iterator = mw.ustring.gmatch(s, pattern) if match_index > 0 then -- Forward search for w in iterator do match_index = match_index - 1 if match_index == 0 then result = w break end end else -- Reverse search local result_table = {} local count = 1 for w in iterator do result_table[count] = w count = count + 1 end result = result_table[ count + match_index ] end end if result == nil then if nomatch == nil then return str._error( 'Match not found' ) else return nomatch end else return result end end --[[ match This function returns a substring from the source string that matches a specified pattern. Usage: {{#invoke:String|match|source_string|pattern_string|start_index|match_number|plain_flag|nomatch_output}} OR {{#invoke:String|match|s=source_string|pattern=pattern_string|start=start_index |match=match_number|plain=plain_flag|nomatch=nomatch_output}} Parameters s: The string to search pattern: The pattern or string to find within the string start: The index within the source string to start the search. The first character of the string has index 1. Defaults to 1. match: In some cases it may be possible to make multiple matches on a single string. This specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1. plain: A flag indicating that the pattern should be understood as plain text. Defaults to false. nomatch: If no match is found, output the "nomatch" value rather than an error. If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from each string. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. If the match_number or start_index are out of range for the string being queried, then this function generates an error. An error is also generated if no match is found. If one adds the parameter ignore_errors=true, then the error will be suppressed and an empty string will be returned on any failure. For information on constructing Lua patterns, a form of [regular expression], see: * http://www.lua.org/manual/5.1/manual.html#5.4.1 * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns * http://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Ustring_patterns ]] -- This is the entry point for #invoke:String|match function str.match( frame ) local new_args = str._getParameters( frame.args, {'s', 'pattern', 'start', 'match', 'plain', 'nomatch'} ) local s = new_args['s'] or '' local start = tonumber( new_args['start'] ) or 1 local plain_flag = str._getBoolean( new_args['plain'] or false ) local pattern = new_args['pattern'] or '' local match_index = math.floor( tonumber(new_args['match']) or 1 ) local nomatch = new_args['nomatch'] return str._match( s, pattern, start, match_index, plain_flag, nomatch ) end --[[ pos This function returns a single character from the target string at position pos. Usage: {{#invoke:String|pos|target_string|index_value}} OR {{#invoke:String|pos|target=target_string|pos=index_value}} Parameters target: The string to search pos: The index for the character to return If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the target string. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. The first character has an index value of 1. If one requests a negative value, this function will select a character by counting backwards from the end of the string. In other words pos = -1 is the same as asking for the last character. A requested value of zero, or a value greater than the length of the string returns an error. ]] function str.pos( frame ) local new_args = str._getParameters( frame.args, {'target', 'pos'} ) local target_str = new_args['target'] or '' local pos = tonumber( new_args['pos'] ) or 0 if pos == 0 or math.abs(pos) > mw.ustring.len( target_str ) then return str._error( 'String index out of range' ) end return mw.ustring.sub( target_str, pos, pos ) end --[[ str_find This function duplicates the behavior of {{str_find}}, including all of its quirks. This is provided in order to support existing templates, but is NOT RECOMMENDED for new code and templates. New code is recommended to use the "find" function instead. Returns the first index in "source" that is a match to "target". Indexing is 1-based, and the function returns -1 if the "target" string is not present in "source". Important Note: If the "target" string is empty / missing, this function returns a value of "1", which is generally unexpected behavior, and must be accounted for separatetly. ]] function str.str_find( frame ) local new_args = str._getParameters( frame.args, {'source', 'target'} ) local source_str = new_args['source'] or '' local target_str = new_args['target'] or '' if target_str == '' then return 1 end local start = mw.ustring.find( source_str, target_str, 1, true ) if start == nil then start = -1 end return start end --[[ find This function allows one to search for a target string or pattern within another string. Usage: {{#invoke:String|find|source_str|target_string|start_index|plain_flag}} OR {{#invoke:String|find|source=source_str|target=target_str|start=start_index|plain=plain_flag}} Parameters source: The string to search target: The string or pattern to find within source start: The index within the source string to start the search, defaults to 1 plain: Boolean flag indicating that target should be understood as plain text and not as a Lua style regular expression, defaults to true If invoked using named parameters, Mediawiki will automatically remove any leading or trailing whitespace from the parameter. In some circumstances this is desirable, in other cases one may want to preserve the whitespace. This function returns the first index >= "start" where "target" can be found within "source". Indices are 1-based. If "target" is not found, then this function returns 0. If either "source" or "target" are missing / empty, this function also returns 0. This function should be safe for UTF-8 strings. ]] function str.find( frame ) local new_args = str._getParameters( frame.args, {'source', 'target', 'start', 'plain' } ) local source_str = new_args['source'] or '' local pattern = new_args['target'] or '' local start_pos = tonumber(new_args['start']) or 1 local plain = new_args['plain'] or true if source_str == '' or pattern == '' then return 0 end plain = str._getBoolean( plain ) local start = mw.ustring.find( source_str, pattern, start_pos, plain ) if start == nil then start = 0 end return start end --[[ replace This function allows one to replace a target string or pattern within another string. Usage: {{#invoke:String|replace|source_str|pattern_string|replace_string|replacement_count|plain_flag}} OR {{#invoke:String|replace|source=source_string|pattern=pattern_string|replace=replace_string| count=replacement_count|plain=plain_flag}} Parameters source: The string to search pattern: The string or pattern to find within source replace: The replacement text count: The number of occurences to replace, defaults to all. plain: Boolean flag indicating that pattern should be understood as plain text and not as a Lua style regular expression, defaults to true ]] function str.replace( frame ) local new_args = str._getParameters( frame.args, {'source', 'pattern', 'replace', 'count', 'plain' } ) local source_str = new_args['source'] or '' local pattern = new_args['pattern'] or '' local replace = new_args['replace'] or '' local count = tonumber( new_args['count'] ) local plain = new_args['plain'] or true if source_str == '' or pattern == '' then return source_str end plain = str._getBoolean( plain ) if plain then pattern = str._escapePattern( pattern ) replace = mw.ustring.gsub( replace, "%%", "%%%%" ) --Only need to escape replacement sequences. end local result if count ~= nil then result = mw.ustring.gsub( source_str, pattern, replace, count ) else result = mw.ustring.gsub( source_str, pattern, replace ) end return result end --[[ simple function to pipe string.rep to templates. ]] function str.rep( frame ) local repetitions = tonumber( frame.args[2] ) if not repetitions then return str._error( 'function rep expects a number as second parameter, received "' .. ( frame.args[2] or '' ) .. '"' ) end return string.rep( frame.args[1] or '', repetitions ) end --[[ escapePattern This function escapes special characters from a Lua string pattern. See [1] for details on how patterns work. [1] https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#Patterns Usage: {{#invoke:String|escapePattern|pattern_string}} Parameters pattern_string: The pattern string to escape. ]] function str.escapePattern( frame ) local pattern_str = frame.args[1] if not pattern_str then return str._error( 'No pattern string specified' ) end local result = str._escapePattern( pattern_str ) return result end --[[ count This function counts the number of occurrences of one string in another. ]] function str.count(frame) local args = str._getParameters(frame.args, {'source', 'pattern', 'plain'}) local source = args.source or '' local pattern = args.pattern or '' local plain = str._getBoolean(args.plain or true) if plain then pattern = str._escapePattern(pattern) end local _, count = mw.ustring.gsub(source, pattern, '') return count end --[[ endswith This function determines whether a string ends with another string. ]] function str.endswith(frame) local args = str._getParameters(frame.args, {'source', 'pattern'}) local source = args.source or '' local pattern = args.pattern or '' if pattern == '' then -- All strings end with the empty string. return "yes" end if mw.ustring.sub(source, -mw.ustring.len(pattern), -1) == pattern then return "yes" else return "" end end --[[ join Join all non empty arguments together; the first argument is the separator. Usage: {{#invoke:String|join|sep|one|two|three}} ]] function str.join(frame) local args = {} local sep for _, v in ipairs( frame.args ) do if sep then if v ~= '' then table.insert(args, v) end else sep = v end end return table.concat( args, sep or '' ) end --[[ Helper function that populates the argument list given that user may need to use a mix of named and unnamed parameters. This is relevant because named parameters are not identical to unnamed parameters due to string trimming, and when dealing with strings we sometimes want to either preserve or remove that whitespace depending on the application. ]] function str._getParameters( frame_args, arg_list ) local new_args = {} local index = 1 local value for _, arg in ipairs( arg_list ) do value = frame_args[arg] if value == nil then value = frame_args[index] index = index + 1 end new_args[arg] = value end return new_args end --[[ Helper function to handle error messages. ]] function str._error( error_str ) local frame = mw.getCurrentFrame() local error_category = frame.args.error_category or 'Errors reported by Module String' local ignore_errors = frame.args.ignore_errors or false local no_category = frame.args.no_category or false if str._getBoolean(ignore_errors) then return '' end local error_str = '<strong class="error">String Module Error: ' .. error_str .. '</strong>' if error_category ~= '' and not str._getBoolean( no_category ) then error_str = '[[Category:' .. error_category .. ']]' .. error_str end return error_str end --[[ Helper Function to interpret boolean strings ]] function str._getBoolean( boolean_str ) local boolean_value if type( boolean_str ) == 'string' then boolean_str = boolean_str:lower() if boolean_str == 'false' or boolean_str == 'no' or boolean_str == '0' or boolean_str == '' then boolean_value = false else boolean_value = true end elseif type( boolean_str ) == 'boolean' then boolean_value = boolean_str else error( 'No boolean value found' ) end return boolean_value end --[[ Helper function that escapes all pattern characters so that they will be treated as plain text. ]] function str._escapePattern( pattern_str ) return mw.ustring.gsub( pattern_str, "([%(%)%.%%%+%-%*%?%[%^%$%]])", "%%%1" ) end return str 6df794dd52434e0f6a372c9918f5a9dedd15f579 Module:TableTools 828 67 140 139 2021-06-24T03:47:37Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain --[[ ------------------------------------------------------------------------------------ -- TableTools -- -- -- -- This module includes a number of functions for dealing with Lua tables. -- -- It is a meta-module, meant to be called from other Lua modules, and should -- -- not be called directly from #invoke. -- ------------------------------------------------------------------------------------ --]] local libraryUtil = require('libraryUtil') local p = {} -- Define often-used variables and functions. local floor = math.floor local infinity = math.huge local checkType = libraryUtil.checkType local checkTypeMulti = libraryUtil.checkTypeMulti --[[ ------------------------------------------------------------------------------------ -- isPositiveInteger -- -- This function returns true if the given value is a positive integer, and false -- if not. Although it doesn't operate on tables, it is included here as it is -- useful for determining whether a given table key is in the array part or the -- hash part of a table. ------------------------------------------------------------------------------------ --]] function p.isPositiveInteger(v) return type(v) == 'number' and v >= 1 and floor(v) == v and v < infinity end --[[ ------------------------------------------------------------------------------------ -- isNan -- -- This function returns true if the given number is a NaN value, and false -- if not. Although it doesn't operate on tables, it is included here as it is -- useful for determining whether a value can be a valid table key. Lua will -- generate an error if a NaN is used as a table key. ------------------------------------------------------------------------------------ --]] function p.isNan(v) return type(v) == 'number' and tostring(v) == '-nan' end --[[ ------------------------------------------------------------------------------------ -- shallowClone -- -- This returns a clone of a table. The value returned is a new table, but all -- subtables and functions are shared. Metamethods are respected, but the returned -- table will have no metatable of its own. ------------------------------------------------------------------------------------ --]] function p.shallowClone(t) local ret = {} for k, v in pairs(t) do ret[k] = v end return ret end --[[ ------------------------------------------------------------------------------------ -- removeDuplicates -- -- This removes duplicate values from an array. Non-positive-integer keys are -- ignored. The earliest value is kept, and all subsequent duplicate values are -- removed, but otherwise the array order is unchanged. ------------------------------------------------------------------------------------ --]] function p.removeDuplicates(t) checkType('removeDuplicates', 1, t, 'table') local isNan = p.isNan local ret, exists = {}, {} for i, v in ipairs(t) do if isNan(v) then -- NaNs can't be table keys, and they are also unique, so we don't need to check existence. ret[#ret + 1] = v else if not exists[v] then ret[#ret + 1] = v exists[v] = true end end end return ret end --[[ ------------------------------------------------------------------------------------ -- numKeys -- -- This takes a table and returns an array containing the numbers of any numerical -- keys that have non-nil values, sorted in numerical order. ------------------------------------------------------------------------------------ --]] function p.numKeys(t) checkType('numKeys', 1, t, 'table') local isPositiveInteger = p.isPositiveInteger local nums = {} for k, v in pairs(t) do if isPositiveInteger(k) then nums[#nums + 1] = k end end table.sort(nums) return nums end --[[ ------------------------------------------------------------------------------------ -- affixNums -- -- This takes a table and returns an array containing the numbers of keys with the -- specified prefix and suffix. For example, for the table -- {a1 = 'foo', a3 = 'bar', a6 = 'baz'} and the prefix "a", affixNums will -- return {1, 3, 6}. ------------------------------------------------------------------------------------ --]] function p.affixNums(t, prefix, suffix) checkType('affixNums', 1, t, 'table') checkType('affixNums', 2, prefix, 'string', true) checkType('affixNums', 3, suffix, 'string', true) local function cleanPattern(s) -- Cleans a pattern so that the magic characters ()%.[]*+-?^$ are interpreted literally. return s:gsub('([%(%)%%%.%[%]%*%+%-%?%^%$])', '%%%1') end prefix = prefix or '' suffix = suffix or '' prefix = cleanPattern(prefix) suffix = cleanPattern(suffix) local pattern = '^' .. prefix .. '([1-9]%d*)' .. suffix .. '$' local nums = {} for k, v in pairs(t) do if type(k) == 'string' then local num = mw.ustring.match(k, pattern) if num then nums[#nums + 1] = tonumber(num) end end end table.sort(nums) return nums end --[[ ------------------------------------------------------------------------------------ -- numData -- -- Given a table with keys like ("foo1", "bar1", "foo2", "baz2"), returns a table -- of subtables in the format -- { [1] = {foo = 'text', bar = 'text'}, [2] = {foo = 'text', baz = 'text'} } -- Keys that don't end with an integer are stored in a subtable named "other". -- The compress option compresses the table so that it can be iterated over with -- ipairs. ------------------------------------------------------------------------------------ --]] function p.numData(t, compress) checkType('numData', 1, t, 'table') checkType('numData', 2, compress, 'boolean', true) local ret = {} for k, v in pairs(t) do local prefix, num = mw.ustring.match(tostring(k), '^([^0-9]*)([1-9][0-9]*)$') if num then num = tonumber(num) local subtable = ret[num] or {} if prefix == '' then -- Positional parameters match the blank string; put them at the start of the subtable instead. prefix = 1 end subtable[prefix] = v ret[num] = subtable else local subtable = ret.other or {} subtable[k] = v ret.other = subtable end end if compress then local other = ret.other ret = p.compressSparseArray(ret) ret.other = other end return ret end --[[ ------------------------------------------------------------------------------------ -- compressSparseArray -- -- This takes an array with one or more nil values, and removes the nil values -- while preserving the order, so that the array can be safely traversed with -- ipairs. ------------------------------------------------------------------------------------ --]] function p.compressSparseArray(t) checkType('compressSparseArray', 1, t, 'table') local ret = {} local nums = p.numKeys(t) for _, num in ipairs(nums) do ret[#ret + 1] = t[num] end return ret end --[[ ------------------------------------------------------------------------------------ -- sparseIpairs -- -- This is an iterator for sparse arrays. It can be used like ipairs, but can -- handle nil values. ------------------------------------------------------------------------------------ --]] function p.sparseIpairs(t) checkType('sparseIpairs', 1, t, 'table') local nums = p.numKeys(t) local i = 0 local lim = #nums return function () i = i + 1 if i <= lim then local key = nums[i] return key, t[key] else return nil, nil end end end --[[ ------------------------------------------------------------------------------------ -- size -- -- This returns the size of a key/value pair table. It will also work on arrays, -- but for arrays it is more efficient to use the # operator. ------------------------------------------------------------------------------------ --]] function p.size(t) checkType('size', 1, t, 'table') local i = 0 for k in pairs(t) do i = i + 1 end return i end local function defaultKeySort(item1, item2) -- "number" < "string", so numbers will be sorted before strings. local type1, type2 = type(item1), type(item2) if type1 ~= type2 then return type1 < type2 else -- This will fail with table, boolean, function. return item1 < item2 end end --[[ Returns a list of the keys in a table, sorted using either a default comparison function or a custom keySort function. ]] function p.keysToList(t, keySort, checked) if not checked then checkType('keysToList', 1, t, 'table') checkTypeMulti('keysToList', 2, keySort, { 'function', 'boolean', 'nil' }) end local list = {} local index = 1 for key, value in pairs(t) do list[index] = key index = index + 1 end if keySort ~= false then keySort = type(keySort) == 'function' and keySort or defaultKeySort table.sort(list, keySort) end return list end --[[ Iterates through a table, with the keys sorted using the keysToList function. If there are only numerical keys, sparseIpairs is probably more efficient. ]] function p.sortedPairs(t, keySort) checkType('sortedPairs', 1, t, 'table') checkType('sortedPairs', 2, keySort, 'function', true) local list = p.keysToList(t, keySort, true) local i = 0 return function() i = i + 1 local key = list[i] if key ~= nil then return key, t[key] else return nil, nil end end end --[[ Returns true if all keys in the table are consecutive integers starting at 1. --]] function p.isArray(t) checkType("isArray", 1, t, "table") local i = 0 for k, v in pairs(t) do i = i + 1 if t[i] == nil then return false end end return true end -- { "a", "b", "c" } -> { a = 1, b = 2, c = 3 } function p.invert(array) checkType("invert", 1, array, "table") local map = {} for i, v in ipairs(array) do map[v] = i end return map end --[[ { "a", "b", "c" } -> { ["a"] = true, ["b"] = true, ["c"] = true } --]] function p.listToSet(t) checkType("listToSet", 1, t, "table") local set = {} for _, item in ipairs(t) do set[item] = true end return set end --[[ Recursive deep copy function. Preserves identities of subtables. ]] local function _deepCopy(orig, includeMetatable, already_seen) -- Stores copies of tables indexed by the original table. already_seen = already_seen or {} local copy = already_seen[orig] if copy ~= nil then return copy end if type(orig) == 'table' then copy = {} for orig_key, orig_value in pairs(orig) do copy[deepcopy(orig_key, includeMetatable, already_seen)] = deepcopy(orig_value, includeMetatable, already_seen) end already_seen[orig] = copy if includeMetatable then local mt = getmetatable(orig) if mt ~= nil then local mt_copy = deepcopy(mt, includeMetatable, already_seen) setmetatable(copy, mt_copy) already_seen[mt] = mt_copy end end else -- number, string, boolean, etc copy = orig end return copy end function p.deepCopy(orig, noMetatable, already_seen) checkType("deepCopy", 3, already_seen, "table", true) return _deepCopy(orig, not noMetatable, already_seen) end --[[ Concatenates all values in the table that are indexed by a number, in order. sparseConcat{ a, nil, c, d } => "acd" sparseConcat{ nil, b, c, d } => "bcd" ]] function p.sparseConcat(t, sep, i, j) local list = {} local list_i = 0 for _, v in p.sparseIpairs(t) do list_i = list_i + 1 list[list_i] = v end return table.concat(list, sep, i, j) end --[[ -- Finds the length of an array, or of a quasi-array with keys such -- as "data1", "data2", etc., using an exponential search algorithm. -- It is similar to the operator #, but may return -- a different value when there are gaps in the array portion of the table. -- Intended to be used on data loaded with mw.loadData. For other tables, use #. -- Note: #frame.args in frame object always be set to 0, regardless of -- the number of unnamed template parameters, so use this function for -- frame.args. --]] function p.length(t, prefix) -- requiring module inline so that [[Module:Exponential search]] -- which is only needed by this one function -- doesn't get millions of transclusions local expSearch = require("Module:Exponential search") checkType('length', 1, t, 'table') checkType('length', 2, prefix, 'string', true) return expSearch(function(i) local key if prefix then key = prefix .. tostring(i) else key = i end return t[key] ~= nil end) or 0 end function p.inArray(arr, valueToFind) checkType("inArray", 1, arr, "table") -- if valueToFind is nil, error? for _, v in ipairs(arr) do if v == valueToFind then return true end end return false end return p ad3062fee63cdfb979a1543abf96236cf7bf609d Module:Transclusion count 828 68 142 141 2021-06-24T03:47:37Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain local p = {} function p.fetch(frame) local template = nil local return_value = nil -- Use demo parameter if it exists, otherswise use current template name local namespace = mw.title.getCurrentTitle().namespace if frame.args["demo"] and frame.args["demo"] ~= "" then template = frame.args["demo"] elseif namespace == 10 then -- Template namespace template = mw.title.getCurrentTitle().text elseif namespace == 828 then -- Module namespace template = (mw.site.namespaces[828].name .. ":" .. mw.title.getCurrentTitle().text) end -- If in template or module namespace, look up count in /data if template ~= nil then namespace = mw.title.new(template, "Template").namespace if namespace == 10 or namespace == 828 then template = mw.ustring.gsub(template, "/doc$", "") -- strip /doc from end local index = mw.ustring.sub(mw.title.new(template).text,1,1) local data = mw.loadData('Module:Transclusion_count/data/' .. (mw.ustring.find(index, "%a") and index or "other")) return_value = tonumber(data[mw.ustring.gsub(template, " ", "_")]) end end -- If database value doesn't exist, use value passed to template if return_value == nil and frame.args[1] ~= nil then local arg1=mw.ustring.match(frame.args[1], '[%d,]+') if arg1 and arg1 ~= '' then return_value = tonumber(frame:callParserFunction('formatnum', arg1, 'R')) end end return return_value end return p 93d007354188de878140d3685a1cfe200c409115 Module:Transclusion count/data/I 828 69 144 143 2021-06-24T03:47:37Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain return { ["IAAF_name"] = 2300, ["IAST"] = 5600, ["IBDB_name"] = 8600, ["ICD10"] = 4600, ["ICD9"] = 4400, ["ICS"] = 2200, ["IDN"] = 3000, ["IMDB_name"] = 2600, ["IMDB_title"] = 3400, ["IMDb_episode"] = 8200, ["IMDb_name"] = 142000, ["IMDb_title"] = 175000, ["IMO_Number"] = 3800, ["IMSLP"] = 7500, ["IMSLP2"] = 2000, ["IND"] = 7200, ["INR"] = 5300, ["INRConvert"] = 4800, ["INRConvert/CurrentRate"] = 4900, ["INRConvert/USD"] = 4800, ["INRConvert/out"] = 4900, ["IOC_profile"] = 7700, ["IP"] = 2300, ["IPA"] = 104000, ["IPA-all"] = 2600, ["IPA-de"] = 6400, ["IPA-es"] = 7400, ["IPA-fr"] = 17000, ["IPA-it"] = 5400, ["IPA-nl"] = 2900, ["IPA-pl"] = 3000, ["IPA-pt"] = 3400, ["IPA-ru"] = 2400, ["IPA-sh"] = 2900, ["IPA-sl"] = 6700, ["IPA-th"] = 2500, ["IPA_audio_link"] = 11000, ["IPAc-cmn"] = 2400, ["IPAc-en"] = 42000, ["IPAc-pl"] = 52000, ["IPC_athlete"] = 2300, ["IPSummary"] = 75000, ["IP_summary"] = 75000, ["IPsock"] = 31000, ["IPtalk"] = 26000, ["IPuser"] = 6700, ["IPvandal"] = 13000, ["IRC"] = 10000, ["IRL"] = 5100, ["IRN"] = 3300, ["ISBN"] = 452000, ["ISBNT"] = 35000, ["ISO_15924/script-example-character"] = 2500, ["ISO_15924/wp-article"] = 2500, ["ISO_15924/wp-article/format"] = 2500, ["ISO_15924/wp-article/label"] = 2500, ["ISO_3166_code"] = 213000, ["ISO_3166_name"] = 16000, ["ISO_639_name"] = 5700, ["ISP"] = 21000, ["ISP_test"] = 5600, ["ISR"] = 4200, ["ISSN"] = 11000, ["ISSN_link"] = 28000, ["ISTAT"] = 8100, ["ISU_figure_skater"] = 2300, ["ITA"] = 16000, ["ITF"] = 5200, ["ITF_profile"] = 7300, ["ITIS"] = 4100, ["ITN_talk"] = 7700, ["ITN_talk/date"] = 7700, ["IUCN_banner"] = 14000, ["I_sup"] = 4000, ["Iaaf_name"] = 7800, ["Ice_hockey"] = 20000, ["Ice_hockey_stats"] = 14000, ["Icehockeystats"] = 10000, ["Icon"] = 508000, ["If"] = 131000, ["If_all"] = 58000, ["If_between"] = 3500, ["If_both"] = 6400000, ["If_either"] = 4900, ["If_empty"] = 2500000, ["If_first_display_both"] = 57000, ["If_in_page"] = 7000, ["If_last_display_both"] = 26000, ["If_preview"] = 53000, ["If_then_show"] = 193000, ["Ifempty"] = 3500, ["Ifeq"] = 2000, ["Ifexist_not_redirect"] = 426000, ["Ifnotempty"] = 14000, ["Ifnumber"] = 21000, ["Ifsubst"] = 71000, ["Ih"] = 7200, ["Ill"] = 69000, ["Illm"] = 6300, ["Image_frame"] = 2600, ["Image_label"] = 4400, ["Image_label_begin"] = 3600, ["Image_label_end"] = 3200, ["Image_label_small"] = 2500, ["Image_needed"] = 4200, ["Image_other"] = 324000, ["Image_requested"] = 163000, ["Image_requested/Category_helper"] = 158000, ["Imbox"] = 904000, ["Imdb_episode"] = 2400, ["Imdb_name"] = 7400, ["Imdb_title"] = 14000, ["Importance"] = 5230000, ["Importance/colour"] = 5250000, ["Importance_mask"] = 8110000, ["Improve_categories"] = 5100, ["In_class"] = 4300, ["In_lang"] = 335000, ["In_string"] = 51000, ["In_title"] = 14000, ["Inactive_WikiProject_banner"] = 143000, ["Inactive_userpage_blanked"] = 4400, ["Include-USGov"] = 30000, ["Incomplete_list"] = 20000, ["Increase"] = 36000, ["Incumbent_pope"] = 4300, ["Independent/meta/color"] = 5800, ["Independent_(US)/meta/color"] = 3300, ["Independent_(politician)/meta/color"] = 13000, ["Independent_(politician)/meta/shortname"] = 11000, ["Independent_politician/meta/color"] = 20000, ["Independent_politician/meta/shortname"] = 16000, ["IndexFungorum"] = 2200, ["Indian_English"] = 3700, ["Indian_National_Congress/meta/color"] = 4000, ["Indian_National_Congress/meta/shortname"] = 3100, ["Indian_Rupee"] = 8800, ["Indian_railway_code"] = 2900, ["Inflation"] = 14000, ["Inflation-fn"] = 4800, ["Inflation-year"] = 3700, ["Inflation/IN/startyear"] = 4900, ["Inflation/UK"] = 3600, ["Inflation/UK/dataset"] = 3600, ["Inflation/UK/startyear"] = 3600, ["Inflation/US"] = 8900, ["Inflation/US/dataset"] = 8900, ["Inflation/US/startyear"] = 8900, ["Inflation/fn"] = 5200, ["Inflation/year"] = 19000, ["Info"] = 7800, ["Infobox"] = 3520000, ["Infobox3cols"] = 269000, ["Infobox_AFL_biography"] = 14000, ["Infobox_Aircraft_Begin"] = 8000, ["Infobox_Aircraft_Type"] = 7200, ["Infobox_Athletics_Championships"] = 2400, ["Infobox_Australian_place"] = 15000, ["Infobox_CFL_biography"] = 6100, ["Infobox_CFL_biography/position"] = 6000, ["Infobox_COA_wide"] = 2300, ["Infobox_Canada_electoral_district"] = 2400, ["Infobox_Chinese"] = 16000, ["Infobox_Chinese/Footer"] = 8900, ["Infobox_Chinese/Header"] = 8900, ["Infobox_Chinese/Korean"] = 14000, ["Infobox_Christian_leader"] = 16000, ["Infobox_Congressman"] = 2100, ["Infobox_Election"] = 3300, ["Infobox_French_commune"] = 37000, ["Infobox_GAA_player"] = 3400, ["Infobox_Gaelic_Athletic_Association_player"] = 4500, ["Infobox_German_location"] = 13000, ["Infobox_German_place"] = 13000, ["Infobox_Greece_place"] = 2700, ["Infobox_Greek_Dimos"] = 2700, ["Infobox_Hindu_temple"] = 2000, ["Infobox_Italian_comune"] = 8100, ["Infobox_Korean_name"] = 14000, ["Infobox_Korean_name/categories"] = 14000, ["Infobox_MLB_yearly"] = 3000, ["Infobox_NCAA_team_season"] = 24000, ["Infobox_NFL_biography"] = 25000, ["Infobox_NFL_player"] = 11000, ["Infobox_NFL_season"] = 2900, ["Infobox_NFL_team_season"] = 3800, ["Infobox_NRHP"] = 71000, ["Infobox_NRHP/conv"] = 17000, ["Infobox_NRHP/locmapin2region"] = 65000, ["Infobox_Newspaper"] = 2700, ["Infobox_Officeholder"] = 9500, ["Infobox_Olympic_event"] = 6700, ["Infobox_Olympic_event/games_text"] = 6700, ["Infobox_Organization"] = 2500, ["Infobox_Paralympic_event"] = 2100, ["Infobox_Paralympic_event/games_text"] = 2100, ["Infobox_Person"] = 2500, ["Infobox_Politician"] = 4500, ["Infobox_Romanian_subdivision"] = 3200, ["Infobox_Russian_district"] = 2000, ["Infobox_Russian_inhabited_locality"] = 3500, ["Infobox_SCOTUS_case"] = 3500, ["Infobox_SCOTUS_case/courts"] = 3600, ["Infobox_SSSI"] = 2000, ["Infobox_Site_of_Special_Scientific_Interest"] = 2000, ["Infobox_Software"] = 2400, ["Infobox_State_Representative"] = 2400, ["Infobox_Swiss_town"] = 2800, ["Infobox_Switzerland_municipality"] = 2800, ["Infobox_U.S._county"] = 3000, ["Infobox_U.S._county/district"] = 3000, ["Infobox_UK_legislation"] = 2100, ["Infobox_UK_place"] = 25000, ["Infobox_UK_place/NoDialCode"] = 7500, ["Infobox_UK_place/NoPostCode"] = 2700, ["Infobox_UK_place/area"] = 2100, ["Infobox_UK_place/dist"] = 2400, ["Infobox_UK_place/local"] = 25000, ["Infobox_UK_place/styles.css"] = 25000, ["Infobox_UN_resolution"] = 2200, ["Infobox_US_Supreme_Court_case"] = 3600, ["Infobox_US_Supreme_Court_case/courts"] = 3600, ["Infobox_University"] = 2100, ["Infobox_Wikipedia_user"] = 8200, ["Infobox_academic"] = 9000, ["Infobox_aircraft_begin"] = 14000, ["Infobox_aircraft_occurrence"] = 2000, ["Infobox_aircraft_type"] = 13000, ["Infobox_airline"] = 4400, ["Infobox_airport"] = 15000, ["Infobox_airport/datatable"] = 15000, ["Infobox_album"] = 157000, ["Infobox_album/color"] = 180000, ["Infobox_album/link"] = 157000, ["Infobox_anatomy"] = 4400, ["Infobox_ancient_site"] = 4300, ["Infobox_animanga/Footer"] = 6000, ["Infobox_animanga/Header"] = 6000, ["Infobox_animanga/Print"] = 4700, ["Infobox_animanga/Video"] = 4200, ["Infobox_architect"] = 3100, ["Infobox_artist"] = 25000, ["Infobox_artist_discography"] = 5400, ["Infobox_artwork"] = 9500, ["Infobox_athlete"] = 4300, ["Infobox_attraction/status"] = 2800, ["Infobox_automobile"] = 7700, ["Infobox_award"] = 11000, ["Infobox_badminton_player"] = 2800, ["Infobox_baseball_biography"] = 26000, ["Infobox_baseball_biography/style"] = 26000, ["Infobox_basketball_biography"] = 19000, ["Infobox_basketball_biography/style"] = 19000, ["Infobox_basketball_club"] = 2800, ["Infobox_bilateral_relations"] = 4000, ["Infobox_body_of_water"] = 17000, ["Infobox_book"] = 47000, ["Infobox_boxer"] = 5200, ["Infobox_bridge"] = 5600, ["Infobox_building"] = 24000, ["Infobox_character"] = 7500, ["Infobox_chess_biography"] = 2900, ["Infobox_chess_player"] = 2600, ["Infobox_church"] = 13000, ["Infobox_church/denomination"] = 13000, ["Infobox_church/font_color"] = 13000, ["Infobox_civilian_attack"] = 4200, ["Infobox_college_coach"] = 11000, ["Infobox_college_sports_team_season"] = 32000, ["Infobox_college_sports_team_season/link"] = 32000, ["Infobox_college_sports_team_season/name"] = 32000, ["Infobox_college_sports_team_season/succession"] = 32000, ["Infobox_college_sports_team_season/team"] = 32000, ["Infobox_comic_book_title"] = 2800, ["Infobox_comics_character"] = 3700, ["Infobox_comics_creator"] = 3400, ["Infobox_company"] = 78000, ["Infobox_concert"] = 3000, ["Infobox_constituency"] = 4700, ["Infobox_country"] = 5500, ["Infobox_country/formernext"] = 5300, ["Infobox_country/imagetable"] = 4500, ["Infobox_country/multirow"] = 7200, ["Infobox_country/status_text"] = 2400, ["Infobox_country_at_games"] = 13000, ["Infobox_country_at_games/core"] = 13000, ["Infobox_court_case"] = 4200, ["Infobox_court_case/images"] = 4200, ["Infobox_cricketer"] = 31000, ["Infobox_cricketer/career"] = 31000, ["Infobox_cricketer/national_side"] = 7300, ["Infobox_criminal"] = 4600, ["Infobox_cultivar"] = 2300, ["Infobox_curler"] = 2300, ["Infobox_cycling_race_report"] = 4100, ["Infobox_cyclist"] = 15000, ["Infobox_dam"] = 4100, ["Infobox_designation_list"] = 16000, ["Infobox_designation_list/entry"] = 14000, ["Infobox_dim"] = 5800, ["Infobox_dim/core"] = 5800, ["Infobox_diocese"] = 3800, ["Infobox_drug"] = 8400, ["Infobox_drug/chemical_formula"] = 8400, ["Infobox_drug/formatATC"] = 8300, ["Infobox_drug/formatCASnumber"] = 8400, ["Infobox_drug/formatChEBI"] = 8400, ["Infobox_drug/formatChEMBL"] = 8400, ["Infobox_drug/formatChemDBNIAID"] = 8400, ["Infobox_drug/formatChemSpider"] = 8400, ["Infobox_drug/formatCompTox"] = 8400, ["Infobox_drug/formatDrugBank"] = 8400, ["Infobox_drug/formatIUPHARBPS"] = 8400, ["Infobox_drug/formatJmol"] = 8400, ["Infobox_drug/formatKEGG"] = 8400, ["Infobox_drug/formatPDBligand"] = 7800, ["Infobox_drug/formatPubChemCID"] = 8400, ["Infobox_drug/formatPubChemSID"] = 8400, ["Infobox_drug/formatUNII"] = 8400, ["Infobox_drug/legal_status"] = 8500, ["Infobox_drug/licence"] = 8400, ["Infobox_drug/maintenance_categories"] = 8400, ["Infobox_drug/pregnancy_category"] = 8400, ["Infobox_drug/title"] = 8400, ["Infobox_election"] = 23000, ["Infobox_election/row"] = 23000, ["Infobox_election/shortname"] = 22000, ["Infobox_enzyme"] = 5100, ["Infobox_ethnic_group"] = 6600, ["Infobox_event"] = 3900, ["Infobox_figure_skater"] = 4000, ["Infobox_film"] = 146000, ["Infobox_film/short_description"] = 146000, ["Infobox_film_awards"] = 2300, ["Infobox_film_awards/link"] = 2300, ["Infobox_film_awards/style"] = 2300, ["Infobox_food"] = 6400, ["Infobox_football_biography"] = 188000, ["Infobox_football_club"] = 25000, ["Infobox_football_club_season"] = 17000, ["Infobox_football_league"] = 2300, ["Infobox_football_league_season"] = 17000, ["Infobox_football_match"] = 5100, ["Infobox_football_tournament_season"] = 6200, ["Infobox_former_subdivision"] = 2900, ["Infobox_game"] = 2100, ["Infobox_game_score"] = 3200, ["Infobox_gene"] = 13000, ["Infobox_given_name"] = 3700, ["Infobox_golfer"] = 4000, ["Infobox_golfer/highest_ranking"] = 4000, ["Infobox_government_agency"] = 8900, ["Infobox_gridiron_football_person"] = 3800, ["Infobox_gridiron_football_person/position"] = 6000, ["Infobox_gymnast"] = 2900, ["Infobox_handball_biography"] = 4500, ["Infobox_historic_site"] = 9400, ["Infobox_horseraces"] = 2500, ["Infobox_hospital"] = 5900, ["Infobox_hospital/care_system"] = 5900, ["Infobox_hospital/lists"] = 5900, ["Infobox_ice_hockey_player"] = 18000, ["Infobox_information_appliance"] = 2000, ["Infobox_international_football_competition"] = 5200, ["Infobox_islands"] = 8200, ["Infobox_islands/area"] = 8600, ["Infobox_islands/density"] = 8600, ["Infobox_islands/length"] = 8200, ["Infobox_islands/styles.css"] = 8200, ["Infobox_journal"] = 9200, ["Infobox_journal/Abbreviation_search"] = 9100, ["Infobox_journal/Bluebook_check"] = 8900, ["Infobox_journal/Former_check"] = 8900, ["Infobox_journal/ISO_4_check"] = 8900, ["Infobox_journal/ISSN-eISSN"] = 9000, ["Infobox_journal/Indexing_search"] = 9000, ["Infobox_journal/MathSciNet_check"] = 8900, ["Infobox_journal/NLM_check"] = 8900, ["Infobox_journal/frequency"] = 8100, ["Infobox_judge"] = 2700, ["Infobox_lake"] = 5000, ["Infobox_language"] = 9100, ["Infobox_language/family-color"] = 11000, ["Infobox_language/genetic"] = 6300, ["Infobox_language/linguistlist"] = 9100, ["Infobox_language/ref"] = 6800, ["Infobox_legislature"] = 3000, ["Infobox_lighthouse"] = 2600, ["Infobox_lighthouse/NGA"] = 2600, ["Infobox_lighthouse/light"] = 2600, ["Infobox_locomotive"] = 4300, ["Infobox_magazine"] = 6900, ["Infobox_manner_of_address"] = 3000, ["Infobox_mapframe"] = 80000, ["Infobox_martial_artist"] = 5200, ["Infobox_martial_artist/record"] = 5200, ["Infobox_medal_templates"] = 385000, ["Infobox_medical_condition"] = 9100, ["Infobox_medical_condition_(new)"] = 7900, ["Infobox_military_conflict"] = 19000, ["Infobox_military_installation"] = 8800, ["Infobox_military_person"] = 40000, ["Infobox_military_structure"] = 2100, ["Infobox_military_unit"] = 24000, ["Infobox_model"] = 2300, ["Infobox_monarch"] = 2000, ["Infobox_mountain"] = 26000, ["Infobox_museum"] = 9000, ["Infobox_musical_artist"] = 116000, ["Infobox_musical_artist/color"] = 116000, ["Infobox_musical_artist/hCard_class"] = 295000, ["Infobox_musical_artist/tracking"] = 103000, ["Infobox_musical_composition"] = 2400, ["Infobox_name"] = 6700, ["Infobox_name_module"] = 8400, ["Infobox_newspaper"] = 8900, ["Infobox_nobility"] = 3100, ["Infobox_noble"] = 6500, ["Infobox_officeholder"] = 181000, ["Infobox_officeholder/office"] = 185000, ["Infobox_official_post"] = 6600, ["Infobox_organization"] = 32000, ["Infobox_pageant_titleholder"] = 2600, ["Infobox_park"] = 6400, ["Infobox_person"] = 410000, ["Infobox_person/Wikidata"] = 3300, ["Infobox_person/height"] = 105000, ["Infobox_person/length"] = 6800, ["Infobox_person/weight"] = 73000, ["Infobox_philosopher"] = 3000, ["Infobox_planet"] = 4600, ["Infobox_play"] = 3300, ["Infobox_political_party"] = 12000, ["Infobox_power_station"] = 2700, ["Infobox_prepared_food"] = 3800, ["Infobox_professional_wrestler"] = 3800, ["Infobox_professional_wrestling_event"] = 2300, ["Infobox_protected_area"] = 13000, ["Infobox_protein_family"] = 2100, ["Infobox_publisher"] = 2300, ["Infobox_racehorse"] = 5300, ["Infobox_racing_driver"] = 3100, ["Infobox_radio_station"] = 22000, ["Infobox_rail"] = 2700, ["Infobox_rail_line"] = 6600, ["Infobox_rail_line/tracking"] = 6600, ["Infobox_rail_service"] = 2700, ["Infobox_reality_competition_season"] = 2800, ["Infobox_record_label"] = 3900, ["Infobox_recurring_event"] = 5600, ["Infobox_religious_biography"] = 4300, ["Infobox_religious_building"] = 11000, ["Infobox_religious_building/color"] = 15000, ["Infobox_requested"] = 2500, ["Infobox_river"] = 28000, ["Infobox_river/calcunit"] = 28000, ["Infobox_river/discharge"] = 28000, ["Infobox_river/row-style"] = 28000, ["Infobox_river/source"] = 28000, ["Infobox_road"] = 24000, ["Infobox_road/banner"] = 13000, ["Infobox_road/browselinks/USA"] = 13000, ["Infobox_road/hide/cities"] = 2100, ["Infobox_road/maint/USA"] = 13000, ["Infobox_road/meta/colors"] = 2300, ["Infobox_road/meta/errors"] = 24000, ["Infobox_road/meta/mask/category"] = 23000, ["Infobox_road/meta/mask/country"] = 24000, ["Infobox_road/meta/mask/subtype1"] = 13000, ["Infobox_road/meta/mask/subtype2"] = 12000, ["Infobox_road/name/USA"] = 13000, ["Infobox_road/name/USA/StateName"] = 6500, ["Infobox_road/shield/USA"] = 13000, ["Infobox_road/shieldmain/USA"] = 13000, ["Infobox_road_small"] = 2200, ["Infobox_rockunit"] = 6300, ["Infobox_royalty"] = 19000, ["Infobox_royalty/short_description"] = 19000, ["Infobox_rugby_biography"] = 14000, ["Infobox_rugby_biography/correct_date"] = 14000, ["Infobox_rugby_biography/depcheck"] = 6700, ["Infobox_rugby_league_biography"] = 9200, ["Infobox_rugby_league_biography/PLAYER"] = 9100, ["Infobox_rugby_team"] = 2500, ["Infobox_saint"] = 4500, ["Infobox_school"] = 39000, ["Infobox_school/short_description"] = 39000, ["Infobox_school_district"] = 3700, ["Infobox_scientist"] = 42000, ["Infobox_service_record"] = 2400, ["Infobox_settlement"] = 536000, ["Infobox_settlement/areadisp"] = 215000, ["Infobox_settlement/columns"] = 86000, ["Infobox_settlement/columns/styles.css"] = 86000, ["Infobox_settlement/densdisp"] = 402000, ["Infobox_settlement/impus"] = 76000, ["Infobox_settlement/lengthdisp"] = 158000, ["Infobox_settlement/link"] = 86000, ["Infobox_settlement/metric"] = 192000, ["Infobox_settlement/pref"] = 269000, ["Infobox_ship_begin"] = 38000, ["Infobox_ship_career"] = 35000, ["Infobox_ship_characteristics"] = 38000, ["Infobox_ship_class_overview"] = 3700, ["Infobox_ship_image"] = 38000, ["Infobox_shopping_mall"] = 3200, ["Infobox_short_story"] = 2100, ["Infobox_skier"] = 2400, ["Infobox_soap_character"] = 3000, ["Infobox_software"] = 14000, ["Infobox_software/simple"] = 14000, ["Infobox_song"] = 70000, ["Infobox_song/color"] = 70000, ["Infobox_song/link"] = 70000, ["Infobox_spaceflight"] = 3400, ["Infobox_speed_skater"] = 2500, ["Infobox_sports_competition_event"] = 12000, ["Infobox_sports_competition_event/medalrow"] = 8300, ["Infobox_sports_league"] = 3500, ["Infobox_sports_season"] = 4300, ["Infobox_sports_team"] = 2000, ["Infobox_sportsperson"] = 99000, ["Infobox_stadium"] = 4800, ["Infobox_state_representative"] = 2900, ["Infobox_station"] = 52000, ["Infobox_station/doc"] = 51000, ["Infobox_station/services"] = 52000, ["Infobox_station/styles.css"] = 52000, ["Infobox_street"] = 2800, ["Infobox_swimmer"] = 9000, ["Infobox_television"] = 52000, ["Infobox_television_channel"] = 6100, ["Infobox_television_episode"] = 11000, ["Infobox_television_episode/italic_title"] = 11000, ["Infobox_television_season"] = 8400, ["Infobox_television_station"] = 3700, ["Infobox_tennis_biography"] = 8400, ["Infobox_tennis_tournament_event"] = 16000, ["Infobox_tennis_tournament_year"] = 8000, ["Infobox_tennis_tournament_year/color"] = 24000, ["Infobox_tennis_tournament_year/footer"] = 24000, ["Infobox_train"] = 2100, ["Infobox_tropical_cyclone"] = 2200, ["Infobox_union"] = 2200, ["Infobox_university"] = 26000, ["Infobox_user"] = 2600, ["Infobox_venue"] = 17000, ["Infobox_video_game"] = 26000, ["Infobox_volleyball_biography"] = 5000, ["Infobox_weapon"] = 6900, ["Infobox_website"] = 7400, ["Infobox_writer"] = 34000, ["Information"] = 126000, ["Inline"] = 2300, ["Input_link"] = 33000, ["Inputbox"] = 11000, ["Instagram"] = 7200, ["Interlanguage_link"] = 103000, ["Interlanguage_link_multi"] = 21000, ["Internet_Archive_author"] = 18000, ["Internet_Archive_film"] = 2300, ["Intitle"] = 8700, ["Invalid_SVG"] = 4500, ["Invalid_SVG/styles.css"] = 4500, ["Ipsock"] = 13000, ["Iptalk"] = 22000, ["IranCensus2006"] = 55000, ["IranNCSGN"] = 3300, ["Iran_Census_2006"] = 55000, ["Irc"] = 2100, ["Irish_place_name"] = 2400, ["IsValidPageName"] = 113000, ["Is_article"] = 3900, ["Is_country_in_Central_America"] = 12000, ["Is_country_in_the_Caribbean"] = 13000, ["Is_empty"] = 4200, ["Is_interwiki_link"] = 5800, ["Is_italic_taxon"] = 353000, ["Isbn"] = 4700, ["Isfdb_name"] = 3900, ["Isfdb_title"] = 4300, ["Isnumeric"] = 180000, ["Iso2continent"] = 23000, ["Iso2country"] = 21000, ["Iso2country/article"] = 20000, ["Iso2country/data"] = 21000, ["Iso2nationality"] = 69000, ["Issubst"] = 78000, ["Isu_name"] = 2200, ["Italic_dab"] = 4800, ["Italic_title"] = 773000, ["Italic_title_prefixed"] = 8300, ["Italics_colon"] = 2900, ["Italictitle"] = 5200, ["Ivm"] = 5700, ["Ivm/styles.css"] = 5700, ["Ivmbox"] = 112000, ["Ivory_messagebox"] = 112000, ["Module:I18n/complex_date"] = 62000, ["Module:IP"] = 75000, ["Module:IPA_symbol"] = 3000, ["Module:IPA_symbol/data"] = 3000, ["Module:IPAc-en"] = 42000, ["Module:IPAc-en/data"] = 42000, ["Module:IPAc-en/phonemes"] = 42000, ["Module:IPAc-en/pronunciation"] = 42000, ["Module:IPAddress"] = 98000, ["Module:ISO_3166"] = 681000, ["Module:ISO_3166/data/AT"] = 2400, ["Module:ISO_3166/data/BA"] = 3300, ["Module:ISO_3166/data/CA"] = 2500, ["Module:ISO_3166/data/DE"] = 14000, ["Module:ISO_3166/data/ES"] = 2500, ["Module:ISO_3166/data/FR"] = 38000, ["Module:ISO_3166/data/GB"] = 5700, ["Module:ISO_3166/data/GR"] = 2900, ["Module:ISO_3166/data/IN"] = 25000, ["Module:ISO_3166/data/National"] = 681000, ["Module:ISO_3166/data/RS"] = 3200, ["Module:ISO_3166/data/RU"] = 23000, ["Module:ISO_3166/data/US"] = 80000, ["Module:ISO_639_name"] = 13000, ["Module:ISOdate"] = 62000, ["Module:Icon"] = 508000, ["Module:Icon/data"] = 508000, ["Module:If_empty"] = 2500000, ["Module:If_in_page"] = 7000, ["Module:If_preview"] = 416000, ["Module:If_preview/configuration"] = 416000, ["Module:If_preview/styles.css"] = 416000, ["Module:In_lang"] = 335000, ["Module:Infobox"] = 3730000, ["Module:Infobox/dates"] = 61000, ["Module:Infobox3cols"] = 282000, ["Module:InfoboxImage"] = 3970000, ["Module:Infobox_body_of_water_tracking"] = 17000, ["Module:Infobox_cyclist_tracking"] = 15000, ["Module:Infobox_gene"] = 13000, ["Module:Infobox_mapframe"] = 337000, ["Module:Infobox_military_conflict"] = 19000, ["Module:Infobox_military_conflict/styles.css"] = 19000, ["Module:Infobox_multi-lingual_name"] = 16000, ["Module:Infobox_multi-lingual_name/data"] = 16000, ["Module:Infobox_power_station"] = 2700, ["Module:Infobox_road"] = 24000, ["Module:Infobox_road/color"] = 24000, ["Module:Infobox_road/length"] = 24000, ["Module:Infobox_road/locations"] = 24000, ["Module:Infobox_road/map"] = 24000, ["Module:Infobox_road/meta/mask/country"] = 15000, ["Module:Infobox_television_disambiguation_check"] = 58000, ["Module:Infobox_television_season_disambiguation_check"] = 7900, ["Module:Infobox_television_season_name"] = 8400, ["Module:Internet_Archive"] = 18000, ["Module:IrelandByCountyCatNav"] = 2500, ["Module:Is_infobox_in_lead"] = 275000, ["Module:Italic_title"] = 1030000, } 927457ecccad86d414e2032dd7a0b31fc458b73d Module:Yesno 828 70 146 145 2021-06-24T03:47:37Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 1 revision imported Scribunto text/plain -- Function allowing for consistent treatment of boolean-like wikitext input. -- It works similarly to the template {{yesno}}. return function (val, default) -- If your wiki uses non-ascii characters for any of "yes", "no", etc., you -- should replace "val:lower()" with "mw.ustring.lower(val)" in the -- following line. val = type(val) == 'string' and val:lower() or val if val == nil then return nil elseif val == true or val == 'yes' or val == 'y' or val == 'true' or val == 't' or val == 'on' or tonumber(val) == 1 then return true elseif val == false or val == 'no' or val == 'n' or val == 'false' or val == 'f' or val == 'off' or tonumber(val) == 0 then return false else return default end end f767643e7d12126d020d88d662a3dd057817b9dc File:Match.png 6 71 147 2021-06-24T03:51:20Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Match 0335207f5e840d81afa158c6c2bb6e3fa02653b4 Match 0 72 148 2021-06-24T03:53:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Match {| class="sortable" |+Image ![[File:Match.png|center|thumb|229x229px]] ! |- ! ! |- ! ! |- | | |- | | |- | | |}" wikitext text/x-wiki Match {| class="sortable" |+Image ![[File:Match.png|center|thumb|229x229px]] ! |- ! ! |- ! ! |- | | |- | | |- | | |} ac833c243586a0d4f73e90552db8a72b16d3eb97 149 148 2021-06-24T03:56:32Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Made the page wikitext text/x-wiki [[File:Match.png|thumb|381x381px]] Match is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. == Appearance == Match is a tan matchstick. == Trivia == # Match was one of the first characters in BFDI history. 24892fb51e7df210413e4acea8a6b5f00ecb735f Main Page 0 1 150 7 2021-06-24T04:02:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 added a note wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. = '''''Note''''' = '''''For unregistered users, please leave a message on my talk page asking for an account and then I will make one for you.''''' e1adf3c76591db3c73f9c16a4822d3a187178316 Main Page 0 1 151 150 2021-06-24T04:03:01Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Protected "[[Main Page]]": To avoid vandalism, especially on the main page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. = '''''Note''''' = '''''For unregistered users, please leave a message on my talk page asking for an account and then I will make one for you.''''' e1adf3c76591db3c73f9c16a4822d3a187178316 160 151 2021-06-24T04:39:22Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 New comments wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. = '''''Note''''' = '''''For unregistered users, please leave a message on my talk page asking for an account and then I will make one for you.''''' == Comments == test <br />-- [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 04:39, 24 June 2021 (UTC) f50d6da0f3ff2ece5676f232d7daceeda8b42d11 161 160 2021-06-24T04:39:40Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. = '''''Note''''' = '''''For unregistered users, please leave a message on my talk page asking for an account and then I will make one for you.''''' e1adf3c76591db3c73f9c16a4822d3a187178316 162 161 2021-06-24T14:45:34Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == [[File:Wikilogo.png|center|thumb|500x500px]] For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. 04fa504e3dc259a97850232b6fdf5021a52ce71f 163 162 2021-06-24T14:46:58Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 /* Welcome to the Battle for Dream Island Wiki! */ WAIT WHAT wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == [[File:Wikilogo.png|center|frameless]] For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. 5fd734f8188b9fd081cfbd544f494cbf811bdae3 171 163 2021-06-24T15:26:40Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == [[File:Wikilogo.png|center|frameless]] For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. d31a80f06cf5bdb240efccc774f647044d8495e0 185 171 2021-06-24T17:50:40Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == [[File:Wikilogo.png|center|frameless]] For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. == Contact users == [[User:Zocktersrat|Zocktersrat]] (administrator, bureaucrat) [[User:Zocktersrat en Español|Zocktersrat en Español]] (rollback) 34947f6d4c795a4c0ccda0bf0026120a9010e1c4 186 185 2021-06-24T17:51:25Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == [[File:Wikilogo.png|center|frameless]] For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. == Contact users == [[User:Zocktersrat|Zocktersrat]] (English) (administrator, bureaucrat) [[User:Zocktersrat en Español|Zocktersrat en Español]] (Spanish) (rollback) a9a44fee1a276f6549e23aa239177dbd1174650b 193 186 2021-06-24T18:26:48Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == [[File:Wikilogo.png|center|frameless]] For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]]. == Contact users == [[User:Zocktersrat|Zocktersrat]] (English) (administrator, bureaucrat) [[User:Zocktersrat en Español|Zocktersrat en Español]] (Spanish) (rollback) 4de643389b1ed701c9130f6598ad81f740f40fb7 202 193 2021-06-24T20:51:52Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == [[File:Wikilogo.png|center|frameless]] For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]]. 384f863cd5d31eb60e3e282bee47dacda10bc3b3 Match 0 72 152 149 2021-06-24T04:04:45Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki [[File:Match.png|thumb|381x381px]] Match is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. == Appearance == Match is a tan matchstick. == Trivia == # Match was one of the first characters in BFDI history. ==Comments== <comments /> 2dbe86e97b73cda25c64675b8e6a721025e1988e 153 152 2021-06-24T04:05:01Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 that's good wikitext text/x-wiki [[File:Match.png|thumb|381x381px]] Match is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. == Appearance == Match is a tan matchstick. == Trivia == # Match was one of the first characters in BFDI history. 24892fb51e7df210413e4acea8a6b5f00ecb735f 155 153 2021-06-24T04:22:32Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki [[File:Match.png|thumb|381x381px|Match]] Match is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. == Appearance == Match is a tan matchstick. == Trivia == # Match was one of the first characters in BFDI history. 60d92bc4b151901537e501c1b68e09b6e7be268f 158 155 2021-06-24T04:26:12Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}}[[File:Match.png|thumb|381x381px|Match]] Match is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. == Appearance == Match is a tan matchstick. == Trivia == # Match was one of the first characters in BFDI history. daab56b7e1e626c12f3ed03f9822459a4a1a2cb2 172 158 2021-06-24T15:32:27Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}}[[File:Match.png|thumb|381x381px|Match]] Match is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. == Appearance == Match is a tan matchstick. == Trivia == # Match was one of the first characters in BFDI history. [[Category:Characters]] dc81cdb9a0350ec2965dbe56dad9a98f444a86ce 201 172 2021-06-24T19:50:55Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}}[[File:Match.png|thumb|381x381px|{{font color|red|Match|normal|This is a message.}}]] Match is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. == Appearance == Match is a tan matchstick. == Trivia == # Match was one of the first characters in BFDI history. [[Category:Characters]] ffe4a6b3b95bb70352b67066e228cb858c9076dc Template:Stub 10 74 156 2021-06-24T04:25:26Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<big>This article is a stub. You can help {{SITENAME}} by [{{fullurl:w/index.php?title={{FULLPAGENAME}}|&action=edit}} expanding it.]</big>" wikitext text/x-wiki <big>This article is a stub. You can help {{SITENAME}} by [{{fullurl:w/index.php?title={{FULLPAGENAME}}|&action=edit}} expanding it.]</big> 10199f776051c479cd5ecabf12475c0d753d5409 157 156 2021-06-24T04:25:47Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <big>This article is a stub. You can help {{SITENAME}} by [{{fullurl:{{FULLPAGENAME}}|&action=edit}} expanding it.]</big> bc0195c3b58f58206bd9ea0d7110aa6a7b96cc47 159 157 2021-06-24T04:26:38Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki ''<big>This article is a stub. You can help {{SITENAME}} by [{{fullurl:{{FULLPAGENAME}}|&action=edit}} expanding it.]</big> '' 5be36d96c1327229a160679a4d58bc048e6a2dd7 File:Object Pencil.png 6 75 164 2021-06-24T14:49:43Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Pencil 5136ae1b5bfe9175a6ed64915e648bdc240443a7 Pencil 0 76 165 2021-06-24T14:50:05Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Made the page wikitext text/x-wiki {{Stub}}[[File:Object_Pencil.png|thumb|381x381px|Pencil]] Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. ==Appearance== Pencil is a No. 2 pencil. ==Trivia== e2da5d41601552a453314495227db744ecb257d9 173 165 2021-06-24T15:32:44Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}}[[File:Object_Pencil.png|thumb|381x381px|Pencil]] Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. ==Appearance== Pencil is a No. 2 pencil. ==Trivia== [[Category:Characters]] 35c8867a2d503551d33ced37d07f868bf340a7e1 200 173 2021-06-24T19:50:17Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}}[[File:Object_Pencil.png|thumb|381x381px|{{font color|orange|Pencil|normal|This is a message.}}]] Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. ==Appearance== Pencil is a No. 2 pencil. ==Trivia== [[Category:Characters]] 8df62a141a4f78a521aefd95f3d4c65d5f032156 MediaWiki:Sidebar 8 77 166 2021-06-24T14:53:47Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with " * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help-mediawiki ** special:Chat|Chat * Battle for Dre..." wikitext text/x-wiki * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help-mediawiki ** special:Chat|Chat * Battle for Dream Island (series)| The show ** Battle for Dream Island|Season 1 ** Battle for Dream Island Again|Season 2 ** Island Dream for Battle|Season 3 ** Battle for BFDI|Season 4 ** The Power of Two|Season 5 * SEARCH * TOOLBOX * LANGUAGES 205b0ff06f3f2ca1daca0cf9446b084fb9b55597 167 166 2021-06-24T14:54:06Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help-mediawiki ** special:Chat|Chat * The show ** Battle for Dream Island|Season 1 ** Battle for Dream Island Again|Season 2 ** Island Dream for Battle|Season 3 ** Battle for BFDI|Season 4 ** The Power of Two|Season 5 * SEARCH * TOOLBOX * LANGUAGES 494355066bd8c233bf3d62f55d3e4042ccde0761 177 167 2021-06-24T16:35:48Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help-mediawiki ** Project:Rules|Rules ** special:Chat|Chat * The show ** Battle for Dream Island|Season 1 ** Battle for Dream Island Again|Season 2 ** Island Dream for Battle|Season 3 ** Battle for BFDI|Season 4 ** The Power of Two|Season 5 * SEARCH * TOOLBOX * LANGUAGES daf893ecaf941b4aca898e214d08ae7f5cdbb13c 188 177 2021-06-24T18:07:49Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{NUMBEROFARTICLES}} articles {{NUMBEROFEDITS}} edits {{NUMBEROFFILES}} files {{NUMBEROFUSERS}} users * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help-mediawiki ** Project:Rules|Rules ** special:Chat|Chat * The show ** Battle for Dream Island|Season 1 ** Battle for Dream Island Again|Season 2 ** Island Dream for Battle|Season 3 ** Battle for BFDI|Season 4 ** The Power of Two|Season 5 * SEARCH * TOOLBOX * LANGUAGES 659732f948648e403825ac844ffa2437ae7ef16e Battle for Dream Island Wiki:Rules 4 78 168 2021-06-24T15:25:19Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "These are a list of rules of the Battle for Dream Island Wiki. # Do not spam: Any spamming users will immediately get blocked. While you could send an appeal, make sure you..." wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # Do not spam: Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # Do not vandalize: Vandalism or any other similar faith will get you permanently banned unless you send an appeal. # Stick to a single account: Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # Be respectful: Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # Have fun: Make and create pages for this recently new made wiki! d84b7e55355ce8f91cf7b4609bd9dfcb4a56e3f2 169 168 2021-06-24T15:25:42Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # Do not spam: Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # Do not vandalize: Vandalism or any other similar faith will get you permanently banned unless you send an appeal. # Stick to a single account: Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # Be respectful: Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # Have fun: Make and create pages for this recently new made wiki! dc2149a62bc602edf7d0202a1a17546d52bce952 170 169 2021-06-24T15:26:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Make and create pages for this recently new made wiki! 4e2ad97ae5745588284a7b667fe32e0bff6eb845 178 170 2021-06-24T16:53:45Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Make and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility 59b8de43359a000bf73872016772f548d9f8dffe 179 178 2021-06-24T16:54:51Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Zocktersrat moved page [[Battle for Dream Island Wiki:Rules]] to [[Rules]] without leaving a redirect: good wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Make and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility 59b8de43359a000bf73872016772f548d9f8dffe 180 179 2021-06-24T16:55:16Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Make and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ a34d6ddbe96c9cb6bb5ec6f5add7caf98183e2cf 181 180 2021-06-24T16:55:28Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Zocktersrat moved page [[Rules]] to [[Battle for Dream Island Wiki:Rules]] wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Make and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ a34d6ddbe96c9cb6bb5ec6f5add7caf98183e2cf 190 181 2021-06-24T18:10:48Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Protected "[[Battle for Dream Island Wiki:Rules]]": To avoid vandalism ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Make and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ a34d6ddbe96c9cb6bb5ec6f5add7caf98183e2cf Category:Characters 14 79 174 2021-06-24T15:33:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Characters in [[Battle for Dream Island (series)|Battle for Dream Island]]." wikitext text/x-wiki Characters in [[Battle for Dream Island (series)|Battle for Dream Island]]. a95856a07ea805cf67185fd49c44bee06777810c Template:Poll of the Day/June 24 10 80 175 2021-06-24T15:40:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<poll> Do you like this extension? Yes No I don't know yet. </poll>" wikitext text/x-wiki <poll> Do you like this extension? Yes No I don't know yet. </poll> a4cd607bb72bdf70b8fe79fc6af8c445d2d042d5 File:Jacknjellify 2018.png 6 81 176 2021-06-24T15:54:19Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Zocktersrat en Español 3 83 183 2021-06-24T17:41:57Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Zocktersrat en Español}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 17:41, 24 June 2021 (UTC) be52881da5e6157be43de78cb82c6cba11c39407 184 183 2021-06-24T17:44:22Z MirahezeGDPR 0fcf607d1786d58976b2aa098c5ad58a 3 Blanked the page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:OreosBFDI67 3 84 187 2021-06-24T18:07:30Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=OreosBFDI67}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 18:07, 24 June 2021 (UTC) b12a00d277ed49b6b4f72fd642edda60248bded8 189 187 2021-06-24T18:08:41Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Template:Welcome|realName=|name=OreosBFDI67}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 18:07, 24 June 2021 (UTC) Hello but who are you tho [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 18:08, 24 June 2021 (UTC) d5fd4c11504b690dd0299260845ddaf45d7f90ac 191 189 2021-06-24T18:12:12Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Template:Welcome|realName=|name=OreosBFDI67}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 18:07, 24 June 2021 (UTC) Hello but who are you tho [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 18:08, 24 June 2021 (UTC) Oh wait your BoogieBLeafy67 [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 18:12, 24 June 2021 (UTC) 189ff386cb68cc5800fd25f82091c6498ca4e2de 192 191 2021-06-24T18:12:24Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Template:Welcome|realName=|name=OreosBFDI67}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 18:07, 24 June 2021 (UTC) b12a00d277ed49b6b4f72fd642edda60248bded8 Battle for Dream Island Wiki:Administrators 4 85 194 2021-06-24T19:35:58Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Redirected page to [[Special:ListUsers?username=&group=sysop&wpsubmit=&wpFormIdentifier=mw-listusers-form&limit=50]] wikitext text/x-wiki #REDIRECT [[Special:ListUsers?username=&group=sysop&wpsubmit=&wpFormIdentifier=mw-listusers-form&limit=50]] e6c8c08cd66783fc379627a5e6cb50075cadcad5 195 194 2021-06-24T19:36:36Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Changed redirect target from [[Special:ListUsers?username=&group=sysop&wpsubmit=&wpFormIdentifier=mw-listusers-form&limit=50]] to [[Special:ListUsers/sysop]] wikitext text/x-wiki #REDIRECT [[Special:ListUsers/sysop]] 24e1dc67ca7e776f0c4233bfcda10f56642191f5 Battle for Dream Island Wiki:Bureaucrats 4 86 196 2021-06-24T19:37:32Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Redirected page to [[Special:ListUsers/bureaucrat]] wikitext text/x-wiki #REDIRECT [[Special:ListUsers/bureaucrat]] 2ae1e5b45f5a189bbdc573968b003f3e74fcb307 Template:Text color 10 87 197 2021-06-24T19:46:10Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "{{{{{|safesubst:}}}#if:{{{4|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};mix-blend-mode:{{{3|inherit}}};">{{{4|}}}</span>|<span style="color:{{{1|in..." wikitext text/x-wiki {{{{{|safesubst:}}}#if:{{{4|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};mix-blend-mode:{{{3|inherit}}};">{{{4|}}}</span>|<span style="color:{{{1|inherit}}};mix-blend-mode:{{{3|inherit}}};">{{{2|}}}</span>}}<noinclude> {{High-use|approximately 800}} This is the {{[[Template:Font color|font color]]}} template. == Example == For example, <code><nowiki>{{font color|orange|none|normal|This is a message.}}</nowiki></code> makes this:<br> {{font color|orange|none|normal|This is a message.}}<br> The third parameter is the blend type combining color with the background. A list of parameters can be found [https://www.w3schools.com/cssref/pr_mix-blend-mode.asp here]. 12bb9844b7178f7a6f9a51ad9d2a2990f2ca0018 Module:High-use 828 44 198 120 2021-06-24T19:47:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{ombox | type = style | text = '''This template is used on [[Special:WhatLinksHere/{{FULLPAGENAME}}|{{#if:{{{1|}}}|{{{1}}}|many}} pages]]''', and changes to it will be widely noticed. Please test any changes using the "preview" button, or by editing on a [[Wikipedia:Subpages#How to create user subpages|user subpage]], and consider discussing changes at {{#if:{{{2|}}}|[[{{{2}}}]]|the [[{{#ifeq:{{SUBPAGENAME}}|doc| {{TALKSPACE}}:{{BASEPAGENAME}} | {{TALKPAGENAME}} }}|talk page]] or in a forum thread}} before implementing them. }}<noinclude> 184d28dce90056f4a3845acf7c66b72826790ac6 Template:Font color 10 88 199 2021-06-24T19:48:06Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<span style="color:{{{1|}}}">{{{2|{{{1|}}}}}}</span><noinclude>{{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noin..." wikitext text/x-wiki <span style="color:{{{1|}}}">{{{2|{{{1|}}}}}}</span><noinclude>{{Documentation}}<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --></noinclude> f12cd387c0d5c11494a7182b7538cc3292eb3a4a Main Page 0 1 203 202 2021-06-24T20:53:10Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTOC__ == Welcome to the {{SITENAME}}! == [[File:Wikilogo.png|center|frameless]] For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]]. ===== WARNING ===== IF ANY ADMINISTRATORS OR BUREAUCRATS COMMENT HERE, THEY WILL BE INDEFINITELY DEMOTED, NO REASON. 0955fabb3d70de3510a317ace447fb71ed0816f7 217 203 2021-06-25T00:53:06Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Replaced content with "{{Mainpage}}" wikitext text/x-wiki {{Mainpage}} 41d9bfd07df46fb1a7e0ce0b3504206ab1a636e4 Battle for Dream Island Wiki:Rules 4 78 204 190 2021-06-24T22:30:09Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar bad faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Make and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ 4326a320be629f413184f18d3a99fc6c9dae1fb2 205 204 2021-06-24T22:32:25Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar bad faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Edit and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ f665de43e9f00da29dcee70f15070d740a02ec36 Pencil 0 76 206 200 2021-06-24T22:34:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 New comments wikitext text/x-wiki {{Stub}}[[File:Object_Pencil.png|thumb|381x381px|{{font color|orange|Pencil|normal|This is a message.}}]] Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. ==Appearance== Pencil is a No. 2 pencil. ==Trivia== [[Category:Characters]] == Comments == test! <br />-- [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 22:34, 24 June 2021 (UTC) 76e9d2132379e0c2e728dd08ce605adfb57dbad2 207 206 2021-06-24T22:34:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}}[[File:Object_Pencil.png|thumb|381x381px|{{font color|orange|Pencil|normal|This is a message.}}]] Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. ==Appearance== Pencil is a No. 2 pencil. ==Trivia== [[Category:Characters]] == Comments == <comments /> 9a8cc4935b68f9a24cb9120c87ab22f8d4c7fdee 208 207 2021-06-24T22:34:53Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 I NEED IT wikitext text/x-wiki {{Stub}}[[File:Object_Pencil.png|thumb|381x381px|{{font color|orange|Pencil|normal|This is a message.}}]] Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. ==Appearance== Pencil is a No. 2 pencil. ==Trivia== [[Category:Characters]] == Comments == test! <br />-- [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 22:34, 24 June 2021 (UTC) 76e9d2132379e0c2e728dd08ce605adfb57dbad2 212 208 2021-06-25T00:23:27Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 New comments wikitext text/x-wiki {{Stub}}[[File:Object_Pencil.png|thumb|381x381px|{{font color|orange|Pencil|normal|This is a message.}}]] Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. ==Appearance== Pencil is a No. 2 pencil. ==Trivia== [[Category:Characters]] == Comments == test! <br />-- [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 22:34, 24 June 2021 (UTC) Slap and pencil <br />-- [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 00:23, 25 June 2021 (UTC) b35b3572cb555c45284326448e7df17138415df5 214 212 2021-06-25T00:44:17Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 made wikitext text/x-wiki {{Stub}} Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. {{Characterbox|Species=No 2. Pencil|Picture=Object Pencil.png|Quote=Wow, Flower is really afraid of bugs!|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Rescission]] BFDIA: N/A BFB: [[Lick Your Way to Freedom]]|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Pencil is a No. 2 pencil. ==Trivia== [[Category:Characters]] == Comments == test! <br />-- [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 22:34, 24 June 2021 (UTC) Slap and pencil <br />-- [[User:Zocktersrat|Zocktersrat]] ([[User talk:Zocktersrat|talk]]) 00:23, 25 June 2021 (UTC)1 682d18ee25438eb6f6032eda0f9397d115f350c8 224 214 2021-06-25T02:19:01Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}} Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. {{Characterbox|Species=No 2. Pencil|Picture=Object Pencil.png|Quote=Wow, Flower is really afraid of bugs!|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Rescission]] BFDIA: N/A BFB: [[Lick Your Way to Freedom]]|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Pencil is a No. 2 pencil. ==Trivia== [[Category:Characters]] 7d6a0ffabc96fde7b23b4eee0e431fdcb473a91c MediaWiki:Common.css 8 5 209 13 2021-06-24T22:36:58Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 css text/css a[href="/wiki/User:Zocktersrat"]{color:blue} a[href="/wiki/User:Zocktersrat"]:hover{color:blue;text-decoration:line-through} 946006b0fb6af91fb1f61191691f8f07f18d3b79 MediaWiki:Wikia.css 8 4 210 10 2021-06-24T22:38:03Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 css text/css a[href="/wiki/User:Zocktersrat"]{color:blue} a[href="/wiki/User:Zocktersrat"]:hover{color:blue;text-decoration:line-through} 946006b0fb6af91fb1f61191691f8f07f18d3b79 User:Zocktersrat/Sandbox 2 89 211 2021-06-24T23:57:07Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<inputbox> type= create buttonlabel= Create Article Page preload= blank break=no placeholder=Enter new article page name </inputbox>" wikitext text/x-wiki <inputbox> type= create buttonlabel= Create Article Page preload= blank break=no placeholder=Enter new article page name </inputbox> b9f7e73d2ba11a10f8be23039c11778296980c59 Template:Characterbox 10 90 213 2021-06-25T00:36:59Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<includeonly> <!-- START OF PADDING AROUND INFO BOX --> {| border="0" cellpadding="20" width= "320px" style="float: right;" |- | <!-- START OF ACTUAL INFO BOX --> {| border="0..." wikitext text/x-wiki <includeonly> <!-- START OF PADDING AROUND INFO BOX --> {| border="0" cellpadding="20" width= "320px" style="float: right;" |- | <!-- START OF ACTUAL INFO BOX --> {| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center" |- !style="background:#CC0000;" |'''{{{name|{{PAGENAME}}}}}''' |- | <!-- BORDER AROUND THE IMAGE --> {| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center" |- ![[File:{{{Picture|none.png}}}|250px|center|]] |- |}<div style= align="center">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div> <!-- END OF BORDER AROUND IMAGE --> |- | {| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #aaaaaa" |-valign="top" {{#if:{{{Gender|}}} | !width=100{{!}}Gender: !width=200{{!}}{{{Gender|''Unknown''}}} }} |-valign="top" {{#if:{{{Pronouns|}}} | !width=100{{!}}Pronouns: !width=200{{!}}{{{Pronouns|''Unknown''}}} }} |-valign="top" {{#if:{{{Debut|}}} | !width=100{{!}}Debut: !width=200{{!}}{{{Debut|''Unknown''}}} }} |-valign="top" {{#if:{{{Eliminated episode|}}} | !width=100{{!}}Eliminated episode(s): !width=200{{!}}{{{Eliminated episode(s)|''Unknown''}}} }} |-valign="top" {{#if:{{{Species|}}} | !width=100{{!}}Species: !width=200{{!}}{{{Species|''Unknown''}}} }} |-valign="top" {{#if:{{{Team|}}} | !width=100{{!}}Team(s): !width=200{{!}}{{{Team(s)|''Unknown''}}} }} |-valign="top" {{#if:{{{Voice Actor|}}} | !width=100{{!}}Voice actor: !width=200{{!}}{{{Voice actor|''Unknown''}}} }} |- |} <!-- END OF FIRST SECTION --> |} <!-- END OF ACTUAL INFOBOX --> |} <!-- END OF PADDING AROUND INFOBOX --> </includeonly> <noinclude> <div><pre> </pre></div> b27d5344c333111c718a5a67ad2a33ca58793ff7 219 213 2021-06-25T01:09:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <includeonly> <!-- START OF PADDING AROUND INFO BOX --> {| border="0" cellpadding="20" width= "320px" style="float: right;" |- | <!-- START OF ACTUAL INFO BOX --> {| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center" |- !style="background:#EAEAEA;" |'''{{{name|{{PAGENAME}}}}}''' |- | <!-- BORDER AROUND THE IMAGE --> {| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center" |- ![[File:{{{Picture|none.png}}}|250px|center|]] |- |}<div style= align="center">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div> <!-- END OF BORDER AROUND IMAGE --> |- | {| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #aaaaaa" |-valign="top" {{#if:{{{Gender|}}} | !width=100{{!}}Gender: !width=200{{!}}{{{Gender|''Unknown''}}} }} |-valign="top" {{#if:{{{Pronouns|}}} | !width=100{{!}}Pronouns: !width=200{{!}}{{{Pronouns|''Unknown''}}} }} |-valign="top" {{#if:{{{Debut|}}} | !width=100{{!}}Debut: !width=200{{!}}{{{Debut|''Unknown''}}} }} |-valign="top" {{#if:{{{Eliminated episode|}}} | !width=100{{!}}Eliminated episode(s): !width=200{{!}}{{{Eliminated episode(s)|''Unknown''}}} }} |-valign="top" {{#if:{{{Species|}}} | !width=100{{!}}Species: !width=200{{!}}{{{Species|''Unknown''}}} }} |-valign="top" {{#if:{{{Team|}}} | !width=100{{!}}Team(s): !width=200{{!}}{{{Team(s)|''Unknown''}}} }} |-valign="top" {{#if:{{{Voice Actor|}}} | !width=100{{!}}Voice actor: !width=200{{!}}{{{Voice actor|''Unknown''}}} }} |- |} <!-- END OF FIRST SECTION --> |} <!-- END OF ACTUAL INFOBOX --> |} <!-- END OF PADDING AROUND INFOBOX --> </includeonly> <noinclude> <div><pre> </pre></div> c4dd3d5b7d4d1a04206e71e899e44a4240ec700f 220 219 2021-06-25T01:10:05Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 probably better with red wikitext text/x-wiki <includeonly> <!-- START OF PADDING AROUND INFO BOX --> {| border="0" cellpadding="20" width= "320px" style="float: right;" |- | <!-- START OF ACTUAL INFO BOX --> {| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center" |- !style="background:#CC0000;" |'''{{{name|{{PAGENAME}}}}}''' |- | <!-- BORDER AROUND THE IMAGE --> {| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center" |- ![[File:{{{Picture|none.png}}}|250px|center|]] |- |}<div style= align="center">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div> <!-- END OF BORDER AROUND IMAGE --> |- | {| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #aaaaaa" |-valign="top" {{#if:{{{Gender|}}} | !width=100{{!}}Gender: !width=200{{!}}{{{Gender|''Unknown''}}} }} |-valign="top" {{#if:{{{Pronouns|}}} | !width=100{{!}}Pronouns: !width=200{{!}}{{{Pronouns|''Unknown''}}} }} |-valign="top" {{#if:{{{Debut|}}} | !width=100{{!}}Debut: !width=200{{!}}{{{Debut|''Unknown''}}} }} |-valign="top" {{#if:{{{Eliminated episode|}}} | !width=100{{!}}Eliminated episode(s): !width=200{{!}}{{{Eliminated episode(s)|''Unknown''}}} }} |-valign="top" {{#if:{{{Species|}}} | !width=100{{!}}Species: !width=200{{!}}{{{Species|''Unknown''}}} }} |-valign="top" {{#if:{{{Team|}}} | !width=100{{!}}Team(s): !width=200{{!}}{{{Team(s)|''Unknown''}}} }} |-valign="top" {{#if:{{{Voice Actor|}}} | !width=100{{!}}Voice actor: !width=200{{!}}{{{Voice actor|''Unknown''}}} }} |- |} <!-- END OF FIRST SECTION --> |} <!-- END OF ACTUAL INFOBOX --> |} <!-- END OF PADDING AROUND INFOBOX --> </includeonly> <noinclude> <div><pre> </pre></div> b27d5344c333111c718a5a67ad2a33ca58793ff7 Match 0 72 215 201 2021-06-25T00:46:11Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Match is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. {{Characterbox|Species=Matchstick|Picture=Match.png|Quote=Yeah, I know, she was so surprised.|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Half a Loaf Is Better Than None]] BFDIA: [[Get in the Van]] IDFB: [[IDFB 2]] (to rejoin) BFB: [[What Do You Think of Roleplay?]]|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Cary Huang]]}} == Appearance == Match is a tan matchstick. == Trivia == # Match was one of the first characters in BFDI history. [[Category:Characters]] e18c4cc6d43bd3dab6fd047b3b184b65923641ad Template:Mainpage 10 91 216 2021-06-25T00:52:35Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with " ==Welcome to the {{SITENAME}}!== [[File:Wikilogo.png|center|frameless]]For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any gu..." wikitext text/x-wiki ==Welcome to the {{SITENAME}}!== [[File:Wikilogo.png|center|frameless]]For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]]. =====WARNING===== IF ANY ADMINISTRATORS OR BUREAUCRATS COMMENT HERE, THEY WILL BE INDEFINITELY DEMOTED, NO REASON. 54ff633988cdf113f8a39a4599f4f36867017d3b 218 216 2021-06-25T00:53:58Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Protected "[[Template:Mainpage]]": Excessive vandalism ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)) wikitext text/x-wiki ==Welcome to the {{SITENAME}}!== [[File:Wikilogo.png|center|frameless]]For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]]. =====WARNING===== IF ANY ADMINISTRATORS OR BUREAUCRATS COMMENT HERE, THEY WILL BE INDEFINITELY DEMOTED, NO REASON. 54ff633988cdf113f8a39a4599f4f36867017d3b 223 218 2021-06-25T02:17:57Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki ==Welcome to the {{SITENAME}}!== [[File:Wikilogo.png|center|frameless]]For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page! This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010. You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]]. eecb7ab3db732558dbefe0d78b33e67979fd8a6c 232 223 2021-06-25T04:44:58Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki =='''Welcome to the {{SITENAME}}!'''== [[File:Wikilogo.png|center|frameless]]<big>'''For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page!'''</big> <big>'''This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010.'''</big> <big>'''You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]].'''</big> 4f3819979f13c9a81cee127bbee7c27389cbcf64 248 232 2021-06-25T20:34:07Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki =='''Welcome to the {{SITENAME}}!'''== [[File:Wikilogo.png|center|frameless]]<big>'''For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page!'''</big> <big>'''This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010.'''</big> <big>'''You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]].'''</big> For Japanese users, go [[injapdreamfigt:メインページ|here]], and for Spanish users, go [[bfdienvideo:Página principal |there]]. 3f9875009c82ae72e9f923422679fe1500ff9758 249 248 2021-06-25T20:34:19Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki =='''Welcome to the {{SITENAME}}!'''== [[File:Wikilogo.png|center|frameless]]<big>'''For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page!'''</big> <big>'''This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010.'''</big> <big>'''You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]].'''</big> For Japanese users, go [[injapdreamfigt:メインページ|here]], and for Spanish users, go [[bfdienvideo:Página principal|there]]. 4c9a03f91aa5cbf9f082c1d6e25148de3d79ec8d File:Blocky.png 6 92 221 2021-06-25T01:32:50Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Blocky 0600ec3fd58e0b677fe74bb5dbb3844892a64f3c Blocky 0 93 222 2021-06-25T01:33:49Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 roblocky wikitext text/x-wiki Blocky is a male contestant on [[Battle for Dream Island]] and [[Battle for BFDI]]. {{Characterbox|Species=Building block|Picture=Blocky.png|Quote=Coiny, don't ever- oops.|Gender=Male|Pronouns=he/him/his|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Sweet Tooth]] (first time), [[The Reveal]] (second time) BFDIA: [[Yeah, Who? I Wanna Know]] BFB: [[The Game Has Changed]]|Team=BFDI: [[Squashy Grapes]] BFB: [[A Better Name Than That]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Blocky is a red building block. ==Trivia== #Blocky was one of the first characters in BFDI history. 11ad173cd79521a59ad97dbf79679cd9a3712ff2 The show 0 94 225 2021-06-25T02:25:10Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Redirected page to [[Battle for Dream Island (series)]] wikitext text/x-wiki #REDIRECT [[Battle for Dream Island (series)]] 77ade036e955968fdefade9c10e3b28f2b0619bb Template:Clear 10 95 226 2021-06-25T04:13:56Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<div style="clear:{{{1|both}}};"></div>" wikitext text/x-wiki <div style="clear:{{{1|both}}};"></div> 0b52a664ec0fd3ca4ef439907f9040f833f188b7 Template:Comments 10 96 227 2021-06-25T04:14:19Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "{{Clear}} {| style="width: 100%; border:1px solid grey; background:#c7d9f2; color: black; margin-top:0px;padding:0px" | <big><b>Comments • {{NUMBEROFCOMMENTSPAGE}}</b></bi..." wikitext text/x-wiki {{Clear}} {| style="width: 100%; border:1px solid grey; background:#c7d9f2; color: black; margin-top:0px;padding:0px" | <big><b>Comments • {{NUMBEROFCOMMENTSPAGE}}</b></big> {{hrt}} <comments/> |} 933aa62ffe1a8b27b9f26a76c2c1d9eb8751c8fc 228 227 2021-06-25T04:14:39Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Clear}} {| style="width: 100%; border:1px solid grey; background:#ffffff; color: black; margin-top:0px;padding:0px" | <big><b>Comments • {{NUMBEROFCOMMENTSPAGE}}</b></big> {{hrt}} <comments/> |} 9693e5b4081332eed05bf9dde0c5e73b897b14a7 229 228 2021-06-25T04:15:44Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Clear}} {| style="width: 100%; border:1px solid grey; background:#ffffff; color: black; margin-top:0px;padding:0px" | <big><b>Comments • {{NUMBEROFCOMMENTS}}</b></big> {{hrt}} <comments/> |} 27594e3cc36163574575c8139b5c65a841ec0a7d 230 229 2021-06-25T04:16:14Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Clear}} {| style="width: 100%; border:1px solid grey; background:#ffffff; color: black; margin-top:0px;padding:0px" | <big><b>Comments {{hrt}} <comments/> |} b1e1b960ef329b4ff47eb3b05c121184bbeca905 Template:Hrt 10 97 231 2021-06-25T04:16:46Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<div style="display:none;"> <onlyinclude><hr style={{#if:{{{margin|}}}|margin-bottom:{{{margin|}}} />| /><br />}}</onlyinclude> </div>" wikitext text/x-wiki <div style="display:none;"> <onlyinclude><hr style={{#if:{{{margin|}}}|margin-bottom:{{{margin|}}} />| /><br />}}</onlyinclude> </div> 04ac154bb0859a9c05ed6a9e5d3bd76bc5e04457 File:Pen.png 6 98 233 2021-06-25T15:44:21Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Pen cf6c07e7054fad4d6a8affaf62f285e16525c46e Pen 0 99 234 2021-06-25T15:44:44Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "{{Stub}} Pen is a male contestant on [[Battle for Dream Island]] and [[Battle for BFDI]]. {{Characterbox|Species=Ballpoint pen|Picture=Pen.png|Quote=Wait, you don't know? M..." wikitext text/x-wiki {{Stub}} Pen is a male contestant on [[Battle for Dream Island]] and [[Battle for BFDI]]. {{Characterbox|Species=Ballpoint pen|Picture=Pen.png|Quote=Wait, you don't know? My legal name is actually... 🅱️en.|Gender=Male|Pronouns=he/him|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Bowling, Now with Explosions!]] TPOT: TBA|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Pen is a blue ballpoint pen. ==Trivia== 98e131d374d6515d81c5d464323971535df0e7e5 Template:Seasonbox 10 100 235 2021-06-25T15:52:51Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<includeonly> <!-- START OF PADDING AROUND INFO BOX --> {| border="0" cellpadding="20" width= "320px" style="float: right;" |- | <!-- START OF ACTUAL INFO BOX --> {| border="0..." wikitext text/x-wiki <includeonly> <!-- START OF PADDING AROUND INFO BOX --> {| border="0" cellpadding="20" width= "320px" style="float: right;" |- | <!-- START OF ACTUAL INFO BOX --> {| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center" |- !style="background:#CC0000;" |'''{{{name|{{PAGENAME}}}}}''' |- | <!-- BORDER AROUND THE IMAGE --> {| border="0" cellpadding="2" cellspacing="0" style="background: whitesmoke; border: 1px solid #aaaaaa" align="center" |- ![[File:{{{Picture|none.png}}}|250px|center|]] |- |}<div style= align="center">{{#if:{{{Quote|}}}|{{{Quote|}}}}}</div> <!-- END OF BORDER AROUND IMAGE --> |- | {| border="0" cellpadding="2" cellspacing="1" style="text-align:left; background: none; border-top:1px solid #aaaaaa" |-valign="top" {{#if:{{{Premiere|}}} | !width=100{{!}}Premiere: !width=200{{!}}{{{Premiere|''Unknown''}}} }} |-valign="top" {{#if:{{{First episode|}}} | !width=100{{!}}First episode: !width=200{{!}}{{{First episode|''Unknown''}}} }} |-valign="top" {{#if:{{{Latest episode|}}} | !width=100{{!}}Latest episode: !width=200{{!}}{{{Latest episode|''Unknown''}}} }} |-valign="top" {{#if:{{{Status|}}} | !width=100{{!}}Status: !width=200{{!}}{{{Status|''Unknown''}}} }} |-valign="top" {{#if:{{{Deaths|}}} | !width=100{{!}}Deaths: !width=200{{!}}{{{Deaths|''Unknown''}}} }} |-valign="top" {{#if:{{{Contestant amount|}}} | !width=100{{!}}Contestants: !width=200{{!}}{{{Contestants|''Unknown''}}} }} |-valign="top" {{#if:{{{Next|}}} | !width=100{{!}}Next: !width=200{{!}}{{{Next|''Unknown''}}} }} |-valign="top" {{#if:{{{Previous|}}} | !width=100{{!}}Previous: !width=200{{!}}{{{Previous|''Unknown''}}} }} |- |} <!-- END OF FIRST SECTION --> |} <!-- END OF ACTUAL INFOBOX --> |} <!-- END OF PADDING AROUND INFOBOX --> </includeonly> <noinclude> <div><pre> </pre></div> 44ec9c587ef63cc431c0ceb0e69db7704db52f09 Battle for Dream Island 0 101 236 2021-06-25T15:57:28Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Battle for Dream Island is the first season of the [[Battle for Dream Island (series)|series of the same name]]. It premiered on January 1, 2010. {{Seasonbox|Premiere=Januar..." wikitext text/x-wiki Battle for Dream Island is the first season of the [[Battle for Dream Island (series)|series of the same name]]. It premiered on January 1, 2010. {{Seasonbox|Premiere=January 1, 2010|First episode=[[Take the Plunge]]|Latest episode=[[Return of the Hang Glider]]|Status=Completed (2012)|Contestant amount=20 (21)|Next=[[Battle for Dream Island Again]]|Previous=N/A|Picture=Wikilogo.png}} a39a2e4a9a74466ba13b1ca3c471f23dce837a4b Battle for Dream Island Wiki:About 4 102 237 2021-06-25T17:09:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "= '''<big><big><big><big><big>Hello!</big></big></big></big></big>''' =" wikitext text/x-wiki = '''<big><big><big><big><big>Hello!</big></big></big></big></big>''' = 07d3683fc6eac2838e23ec71668c635b75dff4d4 238 237 2021-06-25T17:15:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 bocky wikitext text/x-wiki = '''<big><big><big><big><big>Hello!</big></big></big></big></big>''' = '''{{SITENAME}}''' is a site hosted on Miraheze about the webseries [[Battle for Dream Island]], published by [[jacknjellify]] in 2010 on YouTube. Since then, it has been one of the biggest webseries to ever date history in the 2010s. = <big>Featured Page</big> = === [[Blocky]] === <big>Blocky is a male contestant on [[Battle for Dream Island]] and [[Battle for BFDI]].</big> <small>{{Characterbox|Species=Building block|Picture=Blocky.png|Quote=Coiny, don't ever- oops.|Gender=Male|Pronouns=he/him/his|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Sweet Tooth]] (first time), [[The Reveal]] (second time) BFDIA: [[Yeah, Who? I Wanna Know]] BFB: [[The Game Has Changed]]|Team=BFDI: [[Squashy Grapes]] BFB: [[A Better Name Than That]]|Voice Actor=[[Michael Huang]]}}</small> ==== <big>Appearance</big> ==== <big>Blocky is a red building block.</big> d45b2469d46bc4e52a37a26a25e523c07d92b48e 239 238 2021-06-25T17:16:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki = '''<big><big><big><big><big>Hello!</big></big></big></big></big>''' = '''{{SITENAME}}''' is a site hosted on Miraheze about the webseries [[Battle for Dream Island]], published by [[jacknjellify]] in 2010 on YouTube. Since then, it has been one of the biggest webseries to ever date history in the 2010s. #redirect [[Main Page]] 04ffa171725177a4249fed316ba3faa14ccdb104 240 239 2021-06-25T17:16:51Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Redirected page to [[Main Page]] wikitext text/x-wiki #REDIRECT [[Main Page]] = '''<big><big><big><big><big>Hello!</big></big></big></big></big>''' = '''{{SITENAME}}''' is a site hosted on Miraheze about the webseries [[Battle for Dream Island]], published by [[jacknjellify]] in 2010 on YouTube. Since then, it has been one of the biggest webseries to ever date history in the 2010s. 2491ce844bff75f9557208e061e5f9e7a5249fe1 Battle for Dream Island Wiki:Requests for permissions 4 103 241 2021-06-25T17:52:58Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Request permission rights here! All you have to do is state your reason, wanted permission, and your amount of edits so we could review it." wikitext text/x-wiki Request permission rights here! All you have to do is state your reason, wanted permission, and your amount of edits so we could review it. 93f68eae8736683b6d7820c2de9c620be8eed7c3 Battle for Dream Island Wiki:Forbidden pages 4 104 242 2021-06-25T18:00:05Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "These pages are not allowed on mainspace. These pages are only allowed on sandboxes. * Spam/hurtful pages. * Non-canon information. If you want to post that, do it in a sand..." wikitext text/x-wiki These pages are not allowed on mainspace. These pages are only allowed on sandboxes. * Spam/hurtful pages. * Non-canon information. If you want to post that, do it in a sandbox. * Note: All wiki-related pages except for the main page will belong in the Project namespace. If not in it, they will be moved. Project pages can also only be created by administrators. 2b7517c92ac7764e6975f20bff8433d88ab344c6 MediaWiki:Sitenotice 8 105 243 2021-06-25T18:02:33Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "- Please help the wiki. It's been recently created as of 2021." wikitext text/x-wiki - Please help the wiki. It's been recently created as of 2021. 3ab15e8144418e5f61689220a0e5ee824b14b2c0 244 243 2021-06-25T18:03:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Please help the wiki. It's been recently created as of 2021. Contact [[User:Zocktersrat|Zocktersrat]] if you need any advice. b30c9599597e71fb6b78c54f836357192b462b2a UserWiki:Zocktersrat 200 106 247 2021-06-25T20:20:13Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 import user wiki wikitext text/x-wiki {{DISPLAYTITLE:'''Zock ters rat .'''}} <div id="pgod" style="font-size:14em;font-weight:bold;line-height:1;background:#000;color:#fff">Zock ters rat . </div> 333aadd0b127d3aae91af2d268c65941f218ecd8 Template:Delete 10 107 250 2021-06-25T20:44:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "''<big>This page has been nominated for speedy removal from the wiki.</big> ''" wikitext text/x-wiki ''<big>This page has been nominated for speedy removal from the wiki.</big> '' 270bb129114c8041b33bd2761a4a590f6419f9e4 Category:Candidates for speedy deletion 14 109 253 2021-06-25T20:52:10Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<nowiki>These are pages marked with the {{</nowiki>'''Delete'''<nowiki>}} tag because they aren't wanted on the wiki.</nowiki>" wikitext text/x-wiki <nowiki>These are pages marked with the {{</nowiki>'''Delete'''<nowiki>}} tag because they aren't wanted on the wiki.</nowiki> 41553fe4e36f865656502bad1091a63c5d6692f9 Category:Stubs 14 110 254 2021-06-25T20:52:47Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "These are pages marked with the <nowiki>{{'''Stub'''}}</nowiki> tag because they aren't wanted on the wiki." wikitext text/x-wiki These are pages marked with the <nowiki>{{'''Stub'''}}</nowiki> tag because they aren't wanted on the wiki. 7046f48724dfd45985384dafe9a654af860ffd1e 255 254 2021-06-25T20:53:01Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <nowiki>These are pages marked with the {{</nowiki>'''Stub'''<nowiki>}} tag because they aren't wanted on the wiki.</nowiki> f912abff1c8db5e618d98982788d90a7c534186b File:Firey.png 6 112 257 2021-06-26T00:34:25Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Firey 18cef440bc94d0706171eac478deabd620e3d8ba Firey 0 113 258 2021-06-26T00:35:35Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 made the name wikitext text/x-wiki {{Stub}} Firey is a male contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. {{Characterbox|Species=Flame|Picture=Firey.png|Quote=Coiny! You're so dumb!|Gender=Male|Pronouns=he/him|Debut=[[Take the Plunge]]|Eliminated episode=BFB: [[The Tweested Temple]]|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[The Losers]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Firey is an orange flame. ==Trivia== * Firey is the first ever character to be created in object show history. 0ffe207073fc30178c4ee0108ef30ae6dd34d14b Battle for Dream Island 0 101 259 236 2021-06-26T01:22:43Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 LEEK! wikitext text/x-wiki Battle for Dream Island is the first season of the [[Battle for Dream Island (series)|series of the same name]]. It premiered on January 1, 2010. <ref>https://www.youtube.com/watch?v=YQa2-DY7Y_Q</ref> <ref>https://www.youtube.com/watch?v=8LY0o_CgPR8</ref> {{Seasonbox|Premiere=January 1, 2010 <ref>https://www.youtube.com/watch?v=YQa2-DY7Y_Q</ref> <ref>https://www.youtube.com/watch?v=8LY0o_CgPR8</ref>|First episode=[[Take the Plunge]]|Latest episode=[[Return of the Hang Glider]]|Status=Completed (2012)|Contestant amount=20 (21)|Next=[[Battle for Dream Island Again]]|Previous=N/A|Picture=Wikilogo.png}} 3e55c60bf05adaab6bbf6df474f9d5479a338e99 260 259 2021-06-26T01:23:21Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Battle for Dream Island is the first season of the [[Battle for Dream Island (series)|series of the same name]]. It premiered on January 1, 2010. <ref>https://www.youtube.com/watch?v=YQa2-DY7Y_Q</ref> <ref>https://www.youtube.com/watch?v=8LY0o_CgPR8</ref> {{Seasonbox|Premiere=January 1, 2010 <ref>https://www.youtube.com/watch?v=YQa2-DY7Y_Q</ref> <ref>https://www.youtube.com/watch?v=8LY0o_CgPR8</ref>|First episode=[[Take the Plunge]]|Latest episode=[[Return of the Hang Glider]]|Status=Completed (2012)|Contestant amount=20 (21)|Next=[[Battle for Dream Island Again]]|Previous=N/A|Picture=Wikilogo.png}} == References == b43d94e7cc0460be013568bc36816aeae4e3f178 263 260 2021-06-26T14:01:14Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Battle for Dream Island is the first season of the [[Battle for Dream Island (series)|series of the same name]]. It premiered on January 1, 2010. <ref>https://www.youtube.com/watch?v=YQa2-DY7Y_Q</ref> <ref>https://www.youtube.com/watch?v=8LY0o_CgPR8</ref> {{Seasonbox|Premiere=January 1, 2010 <ref>https://www.youtube.com/watch?v=YQa2-DY7Y_Q</ref> <ref>https://www.youtube.com/watch?v=8LY0o_CgPR8</ref>|First episode=[[Take the Plunge]]|Latest episode=[[Return of the Hang Glider]]|Status=Completed (2012)|Contestant amount=20 (21)|Next=[[Battle for Dream Island Again]]|Previous=N/A|Picture=Wikilogo.png}} == Characters == [[Blocky]] [[Bubble]] [[Coiny]] [[David]] [[Eraser]] [[Firey]] [[Flower]] [[Golf Ball]] [[Ice Cube]] [[Leafy]] [[Match]] [[Needle]] [[Pen]] [[Pencil]] [[Pin]] [[Rocky]] [[Snowball]] [[Spongy]] [[Teardrop]] [[Tennis Ball]] [[Woody]] == References == 257a36b283656aa928c995eee29720f707556203 Template:Mainpage 10 91 261 249 2021-06-26T02:48:26Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki =='''Welcome to the {{SITENAME}}!'''== [[File:Wikilogo.png|center|frameless]]<big>'''For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page!'''</big> <big>'''This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010.'''</big> <big>'''You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]].'''</big> For Japanese users, go [https://injapdreamfigt.miraheze.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8|here], and for Spanish users, go [[bfdienvideo:Página principal|there]]. b8f1592806a352ddaf586fe3a40ebfc35f612602 262 261 2021-06-26T02:49:20Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki =='''Welcome to the {{SITENAME}}!'''== [[File:Wikilogo.png|center|frameless]]<big>'''For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page!'''</big> <big>'''This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010.'''</big> <big>'''You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]].'''</big> For Japanese users, go [https://injapdreamfigt.miraheze.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8 here], and for Spanish users, go [[bfdienvideo:Página principal|there]]. 70f66ed34e6f20bdc5e809b240f5b72cdc8b7487 301 262 2021-06-27T17:33:03Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki =='''Welcome to the {{SITENAME}}!'''== [[File:Wikilogo.png|center|frameless]]<big>'''For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page!'''</big> <big>'''This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010.'''</big> <big>'''You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]].'''</big> For Japanese users, go [https://injapdreamfigt.miraheze.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8 here], and for Spanish users, go [[bfdienvideo:Página principal|there]]. = News = June 24, 2021: The wiki is created. 9f2d271ca725ead57805c9b6769b51bec9e8a411 302 301 2021-06-27T17:50:24Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki =='''Welcome to the {{SITENAME}}!'''== [[File:Wikilogo.png|center|frameless]]<big>'''For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page!'''</big> <big>'''This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010.'''</big> <big>'''You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]].'''</big> For Japanese users, go [https://injapdreamfigt.miraheze.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8 here], and for Spanish users, go [https://bfdienvideo.miraheze.org/wiki/P%C3%A1gina_principal there]. = News = June 24, 2021: The wiki is created. 54c58bf750949b1cb0bd7c1a7088be59d52e31a7 Golf Ball 0 114 264 2021-06-26T14:04:47Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Golf Ball is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], and [[Battle for BFDI]]. {{Characterbox|Spe..." wikitext text/x-wiki Golf Ball is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], and [[Battle for BFDI]]. {{Characterbox|Species=Golf ball|Picture=Golfball.png|Quote=But I was supposed to get the most likes. I managed the team!|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Lofty]] |Voice Actor=[[Michael Huang]]}} == Appearance == Golf ball is a sport golf ball with dimples. == Trivia == [[Category:Characters]] 835cec2972fd4b7de7624219fdf5e2da6cda269a 269 264 2021-06-26T17:57:37Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Golf Ball is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Golf ball|Picture=Golfball.png|Quote=But I was supposed to get the most likes. I managed the team!|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Lofty]] |Voice Actor=[[Michael Huang]]}} == Appearance == Golf ball is a sport golf ball with dimples. == Trivia == [[Category:Characters]] eb6f46666b22dc7ae7035c1a17f8659a790837e2 File:Golfball.png 6 115 265 2021-06-26T14:05:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 Coiny 0 116 267 2021-06-26T16:10:45Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Coiny is a male contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], and [[Battle for BFDI]]. {{Characterbox|Species=O..." wikitext text/x-wiki Coiny is a male contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], and [[Battle for BFDI]]. {{Characterbox|Species=Orange coin|Picture=Coinysus.png|Quote=There's nothing to be afraid of, Pin, I promise.|Gender=Male|Pronouns=he/him|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[A Leg Up in the Race]] |Voice Actor=[[Michael Huang]]}} == Appearance == Coiny is a metal orange coin. == Trivia == [[Category:Characters]] 1130185eb74aa23442dd9711a3e82f5c0bc95b29 272 267 2021-06-26T17:58:52Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Coiny is a male contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Orange coin|Picture=Coinysus.png|Quote=There's nothing to be afraid of, Pin, I promise.|Gender=Male|Pronouns=he/him|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[A Leg Up in the Race]] |Voice Actor=[[Michael Huang]]}} == Appearance == Coiny is a metal orange coin. == Trivia == [[Category:Characters]] 1c20e0351360a26fba729d592086ddc9ab995174 File:Coinysus.png 6 117 268 2021-06-26T16:11:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 Pen 0 99 270 234 2021-06-26T17:58:03Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}} Pen is a male contestant on [[Battle for Dream Island]] [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Ballpoint pen|Picture=Pen.png|Quote=Wait, you don't know? My legal name is actually... 🅱️en.|Gender=Male|Pronouns=he/him|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Bowling, Now with Explosions!]] TPOT: TBA|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Pen is a blue ballpoint pen. ==Trivia== 8ff666443220cc53a53f1a259c8f1b8b78adf45a 271 270 2021-06-26T17:58:16Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}} Pen is a male contestant on [[Battle for Dream Island]], [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Ballpoint pen|Picture=Pen.png|Quote=Wait, you don't know? My legal name is actually... 🅱️en.|Gender=Male|Pronouns=he/him|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Bowling, Now with Explosions!]] TPOT: TBA|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Pen is a blue ballpoint pen. ==Trivia== f4613ab4f4feb76405eb28050396f1635d339a54 Pin 0 118 273 2021-06-26T18:01:42Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Pin is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], [[Battle for BFDI]], and [[The Power of Two]]. {{..." wikitext text/x-wiki Pin is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Pushpin|Picture=Pinny.png|Quote=It's hard to patch things up after you've hurt people, even once you learn that you should try!|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Power of Three]] |Voice Actor=[[Cary Huang]]}} == Appearance == Pin is a red plastic pushpin. == Trivia == [[Category:Characters]] d36f8ec6acb7cf69ce68bd41387e387c6e88c728 File:Pinny.png 6 120 275 2021-06-26T18:02:56Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 David 0 121 276 2021-06-27T04:01:30Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "David is a male contestant on [[Battle for Dream Island]] and [[Battle for BFDI]]. {{Characterbox|Species=Human stick figure|Picture=notdavid.png|Quote=Aw, seriously!|Gender=..." wikitext text/x-wiki David is a male contestant on [[Battle for Dream Island]] and [[Battle for BFDI]]. {{Characterbox|Species=Human stick figure|Picture=notdavid.png|Quote=Aw, seriously!|Gender=Male|Pronouns=they/them|Debut=[[Vomitaco]]|Eliminated episode=BFDI: [[Gardening Hero]] BFB: [[Enter The Exit]] |Voice Actor=[[Michael Huang]]}} ==Appearance== David is a stick figure that is poorly drawn. ==Trivia== 5a4736ce6fb6668495b2803d010cd2c40b29423a File:Notdavid.png 6 122 277 2021-06-27T04:01:48Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 Ice Cube 0 123 278 2021-06-27T14:07:35Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Ice Cube is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], [[Battle for BFDI]], and [[The Power of Two]]...." wikitext text/x-wiki Ice Cube is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Ice cube|Picture=Icygirl.png|Quote=I want revenge!|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[The Glistening]] |Voice Actor=[[Satomi Hinatsu]]}} == Appearance == Ice Cube, whilst not a perfectly shaped one, appears to be a frozen cube of tap water (or an ice cube for short). == Trivia == [[Category:Characters]] 569e738161bfbec61c2a5cc2d2056ebdca8c031a File:Icygirl.png 6 124 279 2021-06-27T14:08:29Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 Template:Characternavigation 10 125 280 2021-06-27T14:28:37Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<div style="border:1px solid #ccc;width:80%;min-width:320px;margin:auto;text-align:center;background:#eee;font-size:14px;font-weight:bold;padding:5px;margin-bottom:5px"> {{P..." wikitext text/x-wiki <div style="border:1px solid #ccc;width:80%;min-width:320px;margin:auto;text-align:center;background:#eee;font-size:14px;font-weight:bold;padding:5px;margin-bottom:5px"> [[{{PAGENAME}}|Main]] [[{{PAGENAME}}/Gallery|Gallery]] [[{{PAGENAME}}/Coverage|Coverage]] </div> 146ea230152dfbf8eda476424df455a07e31b6e1 281 280 2021-06-27T14:28:49Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <div style="border:1px solid #ccc;width:80%;min-width:320px;margin:auto;text-align:center;background:#eee;font-size:14px;font-weight:bold;padding:5px;margin-bottom:5px"> [[{{PAGENAME}}|Main]] [[{{PAGENAME}}/Gallery|Gallery]] [[{{PAGENAME}}/Coverage|Coverage]] </div> f6710c667f96ebcf188a60651d99a51003e68f4a 282 281 2021-06-27T14:29:09Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <div style="border:1px solid #ccc;width:80%;min-width:320px;margin:auto;text-align:center;background:#eee;font-size:14px;font-weight:bold;padding:5px;margin-bottom:5px"> [[{{PAGENAME}}|Main]] [[{{PAGENAME}}/Gallery|Gallery]] [[{{PAGENAME}}/Coverage|Coverage]] </div> f5e3ee174c2f76338ea2b4398b38c3d242759fc1 283 282 2021-06-27T14:29:40Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <div style="border:1px solid #ccc;width:80%;min-width:320px;margin:auto;text-align:center;background:#eee;font-size:14px;font-weight:bold;padding:5px;margin-bottom:5px"> [[{{PAGENAME}}|Main ]] [[{{PAGENAME}}/Gallery|Gallery ]] [[{{PAGENAME}}/Coverage|Coverage ]] </div> a5cc659193d217b214f6f9363fe0baf486d13e3d 284 283 2021-06-27T14:30:07Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <div style="border:1px solid #ccc;width:80%;min-width:320px;margin:auto;text-align:center;background:#eee;font-size:14px;font-weight:bold;padding:5px;margin-bottom:5px"> [[{{PAGENAME}}|Main]]|||||[[{{PAGENAME}}/Gallery|Gallery]]|||||[[{{PAGENAME}}/Coverage|Coverage]] </div> bc21b72e3b59db799832170a4e90268d8535c983 285 284 2021-06-27T14:30:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <div style="border:1px solid #ccc;width:80%;min-width:320px;margin:auto;text-align:center;background:#eee;font-size:14px;font-weight:bold;padding:5px;margin-bottom:5px"> [[{{PAGENAME}}|Main]] [[{{PAGENAME}}/Gallery|Gallery]] [[{{PAGENAME}}/Coverage|Coverage]] </div> a4a8f8a5bc5269ed74070eaf65813872915741e3 Match 0 72 286 215 2021-06-27T14:30:47Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Characternavigation}} Match is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], and [[Battle for BFDI]]. {{Characterbox|Species=Matchstick|Picture=Match.png|Quote=Yeah, I know, she was so surprised.|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Half a Loaf Is Better Than None]] BFDIA: [[Get in the Van]] IDFB: [[IDFB 2]] (to rejoin) BFB: [[What Do You Think of Roleplay?]]|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Cary Huang]]}} == Appearance == Match is a tan matchstick. == Trivia == # Match was one of the first characters in BFDI history. [[Category:Characters]] 1134a7a0d73447fd7f30ae94f24424170ed7b929 Pencil 0 76 287 224 2021-06-27T14:31:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Characternavigation}} {{Stub}} Pencil is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island for Dream Battle]], and [[Battle for BFDI]]. {{Characterbox|Species=No 2. Pencil|Picture=Object Pencil.png|Quote=Wow, Flower is really afraid of bugs!|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Rescission]] BFDIA: N/A BFB: [[Lick Your Way to Freedom]]|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Pencil is a No. 2 pencil. ==Trivia== [[Category:Characters]] 89dda051fb1b1630d1a3cbb7d77778374d6043cd Main Page 0 1 288 217 2021-06-27T14:38:57Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <!-- https://www.bilibili.com/video/BV1WK4y1L7vw/?spm_id_from=333.788.recommend_more_video.-1 -->{{Mainpage}} 2a1d504c8daee0694aa934974dcb5ed669326fcf 289 288 2021-06-27T14:50:22Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki _NOTITLE_ <!-- https://www.bilibili.com/video/BV1WK4y1L7vw/?spm_id_from=333.788.recommend_more_video.-1 -->{{Mainpage}} 2da0259dfd8a80423427b86017203270a3f023f5 290 289 2021-06-27T14:50:40Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki __NOTITLE__ <!-- https://www.bilibili.com/video/BV1WK4y1L7vw/?spm_id_from=333.788.recommend_more_video.-1 -->{{Mainpage}} 8ddd70d6de1c78cc80b22a5ff46d211db0d99670 291 290 2021-06-27T14:50:52Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki <!-- https://www.bilibili.com/video/BV1WK4y1L7vw/?spm_id_from=333.788.recommend_more_video.-1 -->{{Mainpage}} 1829ef8f0c07afa346f631dbf72ef7a28376ce56 Battle for Dream Island Wiki:About 4 102 292 240 2021-06-27T16:52:59Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Changed redirect target from [[Main Page]] to [[Battle for Dream Island Wiki]] wikitext text/x-wiki #REDIRECT [[Battle for Dream Island Wiki]] = '''<big><big><big><big><big>Hello!</big></big></big></big></big>''' = '''{{SITENAME}}''' is a site hosted on Miraheze about the webseries [[Battle for Dream Island]], published by [[jacknjellify]] in 2010 on YouTube. Since then, it has been one of the biggest webseries to ever date history in the 2010s. 40d8fb2f1b00c999b7a294477d7fd66fbf17ed67 File:BFDI Wiki LOGO.png 6 126 293 2021-06-27T16:56:50Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki LOL 8a30407962eeb19b309b78ddf587aea18ab55232 Battle for Dream Island Wiki 0 127 294 2021-06-27T16:58:35Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "'''Battle for Dream Island Wiki''' is an encyclopedia about [[Battle for Dream Island (series)|Battle for Dream Island]]. {| |+ {{SITENAME}}File:BFDI Wiki LOGO.png|center|fr..." wikitext text/x-wiki '''Battle for Dream Island Wiki''' is an encyclopedia about [[Battle for Dream Island (series)|Battle for Dream Island]]. {| |+ {{SITENAME}}[[File:BFDI Wiki LOGO.png|center|frameless]] |- |Creation |June 24, 2021 |- |Users |{{NUMBEROFUSERS}} |- |Pages |{{NUMBEROFPAGES}} |} 780a1873f5b55db926ea2633d4ea4ec2156c9777 297 294 2021-06-27T17:00:35Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki '''Battle for Dream Island Wiki''' is an encyclopedia about [[Battle for Dream Island (series)|Battle for Dream Island]]. {{Sitebox}} 1c6be819740f8e8742a94e6100c6cac51e072e24 298 297 2021-06-27T17:04:36Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki '''Battle for Dream Island Wiki''' is an encyclopedia about [[Battle for Dream Island (series)|Battle for Dream Island]]. It documents the history of Battle for Dream Island. It is a rivaler to the FANDOM Battle for Dream Island Wikia. {{Sitebox}} 42013088f8965115f33c8ef319d773cba03ab3de 299 298 2021-06-27T17:08:17Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Redirected page to [[Main Page]] wikitext text/x-wiki #Redirect [[Main Page]] 98527df2fb55f7b00df97250e14756d2def96f15 Template:Sitebox 10 128 295 2021-06-27T16:59:09Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "{| |+ {{SITENAME}}[[File:BFDI Wiki LOGO.png|center|frameless]] |- |Creation |June 24, 2021 |- |Users |{{NUMBEROFUSERS}} |- |Pages |{{NUMBEROFPAGES}} |}" wikitext text/x-wiki {| |+ {{SITENAME}}[[File:BFDI Wiki LOGO.png|center|frameless]] |- |Creation |June 24, 2021 |- |Users |{{NUMBEROFUSERS}} |- |Pages |{{NUMBEROFPAGES}} |} a32e04f661bc4dfe79389d9d73827374304283e7 296 295 2021-06-27T16:59:33Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {| class="wikitable" |+ {{SITENAME}}[[File:BFDI Wiki LOGO.png|center|frameless]] |- |Creation |June 24, 2021 |- |Users |{{NUMBEROFUSERS}} |- |Pages |{{NUMBEROFPAGES}} |} b837e8fdc8bf674033f2adf43142f1ae2ee23b34 Battle for Dream Island Wiki:Rules 4 78 300 205 2021-06-27T17:09:53Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Changed protection level for "[[Battle for Dream Island Wiki:Rules]]": Excessive vandalism ([Edit=Allow only logged in users] (indefinite) [Move=Allow only logged in users] (indefinite)) wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar bad faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Edit and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ f665de43e9f00da29dcee70f15070d740a02ec36 304 300 2021-06-27T18:25:05Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Zocktersrat moved page [[Battle for Dream Island Wiki:Rules]] to [[Rules]] over redirect wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar bad faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Edit and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ f665de43e9f00da29dcee70f15070d740a02ec36 306 304 2021-06-27T18:25:27Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Changed protection level for "[[Rules]]": Cascade ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading] wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar bad faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Edit and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ f665de43e9f00da29dcee70f15070d740a02ec36 307 306 2021-06-27T18:25:38Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Zocktersrat moved page [[Rules]] to [[Battle for Dream Island Wiki:Rules]] over redirect wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar bad faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Edit and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ f665de43e9f00da29dcee70f15070d740a02ec36 309 307 2021-06-27T18:26:00Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Changed protection level for "[[Battle for Dream Island Wiki:Rules]]": S ([Edit=Allow only logged in users] (indefinite) [Move=Allow only logged in users] (indefinite)) wikitext text/x-wiki These are a list of rules of the Battle for Dream Island Wiki. # '''Do not spam''': Any spamming users will immediately get blocked. While you could send an appeal, make sure you include all the bad things you have done. # '''Do not vandalize''': Vandalism or any other similar bad faith will get you permanently banned unless you send an appeal. # '''Stick to a single account''': Do not make sockpuppets just so you could get a single account banned without your main account getting banned. While we don't do detective work, if we find out that you are making sockpuppets, you will be IP banned. # '''Be respectful''': Do not make flame wars. Anyone involved except for [[User:Zocktersrat|Zocktersrat]] or other bureaucrats will get blocked for 4 days. # '''Have fun''': Edit and create pages for this recently new made wiki! == Consequences/Causes == ==== 1 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 2 ==== First offense: Indefinite ban Second offense (after appeal): Indefinite ban ==== 3 ==== Only offense(s): IP ban ==== 4 ==== First offense: 4 day ban Second offense: 2 month ban Third offense: Indefinite ban ==== 5 ==== Potentially permission right accessibility __NOTOC__ f665de43e9f00da29dcee70f15070d740a02ec36 Rules 0 131 308 2021-06-27T18:25:38Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Zocktersrat moved page [[Rules]] to [[Battle for Dream Island Wiki:Rules]] over redirect wikitext text/x-wiki #REDIRECT [[Battle for Dream Island Wiki:Rules]] 56055948434ae6cbf3d4008e3cf44fe06e2adec3 MediaWiki:Sidebar 8 77 310 188 2021-06-27T22:03:43Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help-mediawiki ** Project:Rules|Rules ** special:Chat|Chat * The show ** Battle for Dream Island|Season 1 ** Battle for Dream Island Again|Season 2 ** Island Dream for Battle|Season 3 ** Battle for BFDI|Season 4 ** The Power of Two|Season 5 * SEARCH * TOOLBOX * LANGUAGES daf893ecaf941b4aca898e214d08ae7f5cdbb13c Template:Poll of the Day/June 27 10 132 311 2021-06-27T22:37:04Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "<poll> Do you like this extension? Yes No I don't know yet. </poll>" wikitext text/x-wiki <poll> Do you like this extension? Yes No I don't know yet. </poll> a4cd607bb72bdf70b8fe79fc6af8c445d2d042d5 Template:Mainpage 10 91 312 302 2021-06-27T22:37:46Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki =='''Welcome to the {{SITENAME}}!'''== [[File:Wikilogo.png|center|frameless]]<big>'''For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page!'''</big> <big>'''This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010.'''</big> <big>'''You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]].'''</big> For Japanese users, go [https://injapdreamfigt.miraheze.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8 here], and for Spanish users, go [https://bfdienvideo.miraheze.org/wiki/P%C3%A1gina_principal there]. = Poll of the Day = {{Poll of the Day/{{CURRENTMONTHNAME}} {{CURRENTDAY}} = News = June 24, 2021: The wiki is created. 39b00767f47d8d24da9637929ee81304192b02c6 313 312 2021-06-27T22:37:58Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki =='''Welcome to the {{SITENAME}}!'''== [[File:Wikilogo.png|center|frameless]]<big>'''For help on this wiki, go to Meta Miraheze's own [[meta:Help_center|Help center]] or if you need any guidelines, go to the [[Project: Rules|Rules]] page!'''</big> <big>'''This is a wiki about [[Battle for Dream Island (series)|Battle for Dream Island]], a webseries created by [[Jacknjellify]] that premiered on January 1, 2010.'''</big> <big>'''You can easily create a page right now! Or edit one of the [[Special:AllPages|remaining pages]].'''</big> For Japanese users, go [https://injapdreamfigt.miraheze.org/wiki/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8 here], and for Spanish users, go [https://bfdienvideo.miraheze.org/wiki/P%C3%A1gina_principal there]. = Poll of the Day = {{Poll of the Day/{{CURRENTMONTHNAME}} {{CURRENTDAY}}}} = News = June 24, 2021: The wiki is created. a81366ad0301ffbe8cebde066decbff7199b7d23 Category:Candidates for speedy deletion 14 109 314 253 2021-06-27T22:38:38Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Zocktersrat moved page [[Category:Candidates for speedy removal]] to [[Category:Candidates for speedy deletion]] over a redirect without leaving a redirect: better... wikitext text/x-wiki <nowiki>These are pages marked with the {{</nowiki>'''Delete'''<nowiki>}} tag because they aren't wanted on the wiki.</nowiki> 41553fe4e36f865656502bad1091a63c5d6692f9 Template:Delete 10 107 315 250 2021-06-27T22:40:54Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki ''<big>This page has been marked as a candidate for [[Category:Candidates for speedy deletion|speedy deletion]].</big> '' 2dc4c3b25462272a9bbb2b1740444014dd3d1593 316 315 2021-06-27T22:41:25Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki ''<big>This page has been marked as a candidate for [[Category:Candidates for speedy deletion|speedy deletion]]. Reason: {{{reason|no reason provided.}}}</big> '' 8f8231933b3e83bb6ec62b5b2b03049e75189e23 317 316 2021-06-27T22:42:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki ''<big>This page has been marked as a candidate for [[:Category:Candidates for speedy deletion|speedy deletion]]. Reason: {{{reason|no reason provided.}}}</big>'' 0544d25924bd66d806fa10c59a9d6fd6847752ea 320 317 2021-06-27T22:46:17Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki ''<big>This page has been marked as a candidate for [[:Category:Candidates for speedy deletion|speedy deletion]]. Reason: {{{reason|no reason provided.}}}</big>'' == Description == This is to use whenever a page is marked as spam, vandalism, or housekeeping. Keep in mind that every page tagged with this template should have a reason like <nowiki>{{{reason|[Example text here]}}}</nowiki>. 58e10636717470908f48ade20d78d19fbf740853 322 320 2021-06-27T22:48:12Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki ''<big>This page has been marked as a candidate for [[:Category:Candidates for speedy deletion|speedy deletion]]. Reason: {{{reason|no reason provided.}}}</big>'' 0544d25924bd66d806fa10c59a9d6fd6847752ea Template:Delete/doc 10 134 321 2021-06-27T22:47:17Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "This is to use whenever a page is marked as spam, vandalism, or housekeeping. Keep in mind that every page tagged with this template should have a reason like <nowiki>{{{reaso..." wikitext text/x-wiki This is to use whenever a page is marked as spam, vandalism, or housekeeping. Keep in mind that every page tagged with this template should have a reason like <nowiki>{{{reason|[Example text here]}}}</nowiki>. 939ecbe4a238f0acf493ca82977ccb7f6017f76d Battle for Dream Island Wiki:Users 4 135 323 2021-06-28T16:01:08Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Redirected page to [[Special:Listusers]] wikitext text/x-wiki #redirect [[Special:Listusers]] ea8310f4d058d2333f9e79ec205c067e835626af Battle for Dream Island Again 0 136 324 2021-06-28T16:22:23Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Battle for Dream Island Again is the second season of the [[Battle for Dream Island (series)|series of the same name]]. It premiered on June 29, 2012. {{Seasonbox|Premiere=Ju..." wikitext text/x-wiki Battle for Dream Island Again is the second season of the [[Battle for Dream Island (series)|series of the same name]]. It premiered on June 29, 2012. {{Seasonbox|Premiere=June 29, 2012|First episode=[[Yeah, Who? I Wanna Know!]]|Latest episode=[[The Long-lost Yoyle City]]|Status=Cancelled (2013)|Contestant amount=22|Next=[[Island Dream for Battle]]|Previous=[[Battle for Dream Island]]|Picture=BFDIALogo.png}} == Characters == [[Bomby]] [[Book]] [[Coiny]] [[Donut]] [[Dora]] [[Firey]] [[Fries]] [[Gelatin]] [[Golf Ball]] [[Ice Cube]] [[Match]] [[Needle]] [[Nickel]] [[Pencil]] [[Pin]] [[Puffball]] [[Ruby]] [[Rocky]] [[Spongy]] [[Teardrop]] [[Tennis Ball]] [[Yellow Face]] 2ba62947a4044cfd8a1ec937943663095ce97554 File:BFDIALogo.png 6 137 325 2021-06-28T16:22:59Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:More like pensus! 3 138 326 2021-06-28T18:47:04Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=More like pensus!}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 18:47, 28 June 2021 (UTC) 3669118eccc9d0cc77912b980c2405937292826d 327 326 2021-06-28T18:47:51Z MirahezeGDPR 7c0b03c324cf98d2e132ac5c8efbfe59 7 wikitext text/x-wiki {{Template:Welcome|realName=|name=More like pensus!}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 18:47, 28 June 2021 (UTC) WHAT THE FUCK PENIS NIGGA? [[User:More like pensus!|More like pensus!]] ([[User talk:More like pensus!|talk]]) 18:47, 28 June 2021 (UTC) 8163ee54accc5fe3d9b202b5a9d4172cbee2f2cb 330 327 2021-06-28T18:49:56Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Reverted edits by [[Special:Contributions/More like pensus!|More like pensus!]] ([[User talk:More like pensus!|talk]]) to last revision by [[User:New user message|New user message]] wikitext text/x-wiki {{Template:Welcome|realName=|name=More like pensus!}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 18:47, 28 June 2021 (UTC) 3669118eccc9d0cc77912b980c2405937292826d UserWiki:Zocktersrat 200 106 328 247 2021-06-28T18:49:01Z MirahezeGDPR 7c0b03c324cf98d2e132ac5c8efbfe59 7 Replaced content with "DRUGSDJGNKDBMDKM" wikitext text/x-wiki DRUGSDJGNKDBMDKM a7d1fd51e91616abb7ef405febbf9e444d972fbf 329 328 2021-06-28T18:49:31Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Reverted edits by [[Special:Contributions/More like pensus!|More like pensus!]] ([[User talk:More like pensus!|talk]]) to last revision by [[User:Zocktersrat|Zocktersrat]] wikitext text/x-wiki {{DISPLAYTITLE:'''Zock ters rat .'''}} <div id="pgod" style="font-size:14em;font-weight:bold;line-height:1;background:#000;color:#fff">Zock ters rat . </div> 333aadd0b127d3aae91af2d268c65941f218ecd8 User talk:DarkMatterMan4500 3 139 331 2021-06-28T18:56:59Z DarkMatterMan4500 8 /* Hello: */ new section wikitext text/x-wiki == Hello: == Hello there, I am here now. [[User:DarkMatterMan4500|DarkMatterMan4500]] ([[User talk:DarkMatterMan4500|talk]]) 18:56, 28 June 2021 (UTC) e4788106cb0466ba07d6c645d473a67ef1d1bd6e Battle for Dream Island Wiki:Discord server 4 140 332 2021-06-28T19:52:27Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "== Discord == Hello visitor, currently there is no Discord server. However, there will be one coming soon after the user count increases." wikitext text/x-wiki == Discord == Hello visitor, currently there is no Discord server. However, there will be one coming soon after the user count increases. f7289f733c68f4999d55d3acbae2ad51ebcf4d38 333 332 2021-06-28T19:53:09Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki == Discord == Hello visitor, currently there is no Discord server. However, there will be one coming soon after the user count increases. However, you can check out our [[Special:Chat|Chat feature]]. 7b619b230097f954cd711345acf135bb004a8658 337 333 2021-06-28T19:58:05Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki == Discord == Hello visitor, currently there is no Discord server. However, there will be one coming soon after the user count increases. However, you can check out our [[Special:Chat|Chat feature]]. == Join now! == 00045c26c9c147585e7861a1ddfcb638b0ef2201 339 337 2021-06-28T20:01:38Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki == Discord == Hello visitor, currently there is no Discord server. However, there will be one coming soon after the user count increases. However, you can check out our [[Special:Chat|Chat feature]]. == Join now! == [[File:Discord-Logo.png|thumb|link=https://discord.gg/gettrolled]] bef85282f0ac0b7d536351cf005d9f5d4757efcc 340 339 2021-06-28T20:02:21Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki == Discord == Hello visitor, currently there is no Discord server. However, there will be one coming soon after the user count increases. However, you can check out our [[Special:Chat|Chat feature]]. == Join now! == [[File:Discord-Logo.png|link=https://discord.gg/gettrolled|center|frameless]] 04749ebb4dae27a8f78dcc738121892f11eb7942 344 340 2021-06-28T22:17:51Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki == Discord == Hello visitor, currently there is no Discord server. However, there will be one coming soon after the user count increases. However, you can check out our [[Special:Chat|Chat feature]]. Come back soon! (coming presumably on July 23) = THIS IS JUST UPCOMING TEXT FOR WHEN THE SERVERS ARE RELEASED. = == Join now! == [[File:Discord-Logo.png|link=https://discord.gg/gettrolled|center|frameless]] 8f79bb15807d3c0f6f13bd5610045b9fbff3fc42 MediaWiki:Sidebar 8 77 334 310 2021-06-28T19:53:51Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki * navigation ** mainpage|mainpage-description ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help-mediawiki ** Project:Rules|Rules ** special:Chat|Chat ** Project:Discord|Discord * The show ** Battle for Dream Island|Season 1 ** Battle for Dream Island Again|Season 2 ** Island Dream for Battle|Season 3 ** Battle for BFDI|Season 4 ** The Power of Two|Season 5 * SEARCH * TOOLBOX * LANGUAGES 0cf360b941b864559551b660723fe705f12c77f7 Battle for Dream Island Wiki:Discord 4 141 335 2021-06-28T19:54:41Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Redirected page to [[Battle for Dream Island Wiki:Discord sever]] wikitext text/x-wiki #redirect [[Battle for Dream Island Wiki:Discord sever]] 7722c91cfc797d8c7c0e2229182558889bdbbe17 336 335 2021-06-28T19:54:59Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Changed redirect target from [[Battle for Dream Island Wiki:Discord sever]] to [[Battle for Dream Island Wiki:Discord server]] wikitext text/x-wiki #redirect [[Battle for Dream Island Wiki:Discord server]] 2b246f1417b35d3d1ed1f2a0df488d9011e054da File:Discord-Logo.png 6 142 338 2021-06-28T19:59:24Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Discord. a889daca6eeb927f4bbabdc38786e6c8e0498563 Pen 0 99 341 271 2021-06-28T20:24:57Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}} Pen is a male contestant on [[Battle for Dream Island]], [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Ballpoint pen|Picture=Pen.png|Quote=Wait, you don't know? My legal name is actually... 🅱️en.|Gender=Male|Pronouns=he/him|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Bowling, Now with Explosions!]] TPOT: TBA|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Pen is a blue ballpoint pen. ==Trivia== [[es:Pen]] 09e22a7e362a675abeb977f8c9a9e4a2061c0b23 342 341 2021-06-28T20:26:02Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki {{Stub}} Pen is a male contestant on [[Battle for Dream Island]], [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Ballpoint pen|Picture=Pen.png|Quote=Wait, you don't know? My legal name is actually... 🅱️en.|Gender=Male|Pronouns=he/him|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Bowling, Now with Explosions!]] TPOT: TBA|Team=BFDI: [[Squishy Cherries]] BFDIA: [[Team No-Name]] BFB: [[iance]]|Voice Actor=[[Michael Huang]]}} ==Appearance== Pen is a blue ballpoint pen. ==Trivia== == In other languages == Pen in [https://bfdienvideo.miraheze.org/wiki/Pen Spanish] 1c7562de871c709cd5d462af4cd7a8f0690608c7 MediaWiki:Sitenotice 8 105 343 244 2021-06-28T22:16:49Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Please help the wiki. It's been recently created as of 2021. Contact [[User:Zocktersrat|Zocktersrat]] if you need any advice. If you are active on Miraheze, join here! If you want btw. 7450106adbac1b8f1be70e4f359d215b815f761b 347 343 2021-07-11T19:46:06Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki Please help the wiki. It's been recently created as of 2021. Contact [[User:Zocktersrat|Zocktersrat]] if you need any advice. If you are active on Miraheze, join here! If you want btw. This wiki will fork to another database, namely [http://www.shoutwiki.com/wiki/Main_Page ShoutWiki]. 98b1b98d1a7562785fb963829d1d57af8264650b 348 347 2021-07-11T19:46:21Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki This wiki will fork to another database, namely [http://www.shoutwiki.com/wiki/Main_Page ShoutWiki]. 0ececfaff04591be08ca81b40d53add929eafd60 Needle 0 143 345 2021-06-29T21:23:01Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 Created page with "Needle is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], [[Battle for BFDI]], and [[The Power of Two]]...." wikitext text/x-wiki Needle is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Sewing needle|Picture=Needydon'tcallmethattho!.png|Quote=Don't call me needy!|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Puzzling Mysteries]] |Voice Actor=[[Kenzie Bryant]]}} == Appearance == Needle is a sewing needle. == Trivia == [[Category:Characters]] a04b7743f9034ca3e3172162d26266896bb4301a File:Needydon'tcallmethattho!.png 6 144 346 2021-06-29T21:23:46Z MirahezeGDPR d2ad885408ed26bff8bf16be95bb45ba 2 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Arms99 3 145 349 2021-09-10T19:51:40Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=arms|name=Arms99}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 19:51, 10 September 2021 (UTC) 6f7f9764ccb9152990a8e4ec36df7ff2dbc3f7fe User talk:Redangrybirdinbfb 3 146 350 2021-09-10T20:07:13Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Redangrybirdinbfb}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 20:07, 10 September 2021 (UTC) e085766beb83772ad0aa1d78c3d8fcb01268ead9 User talk:Cosmic Studios 3 147 351 2021-09-11T01:45:44Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Cosmic Studios}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 01:45, 11 September 2021 (UTC) 12f7f8e4656e7407bdb1b015ea6aec81f5d36ebf User talk:JanKubina2001 3 148 352 2021-09-11T06:16:18Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=JanKubina|name=JanKubina2001}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 06:16, 11 September 2021 (UTC) 2cf8f0445903ee47ef522438b68720d324ac4067 User talk:OsmoTosmo 3 149 353 2021-09-11T19:35:02Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=OsmoTosmo}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 19:35, 11 September 2021 (UTC) b456f50c59b594c8dce9e8db833bec8ae3cc7d84 User talk:SomethingAboutNothing 3 150 354 2021-09-11T22:52:48Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=SomethingAboutNothing}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 22:52, 11 September 2021 (UTC) 95b1d5d5faaa15aa412e9e5b8d170ed030553637 User talk:CinnoFanno 3 151 355 2021-09-12T00:45:20Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=CinnoFanno}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 00:45, 12 September 2021 (UTC) 2852fab428b210af8e5b296794379e78d66d8a87 File:Screenshot 2021-09-12 at 8.13.34 PM.png 6 152 356 2021-09-12T12:13:55Z Jang47079 51 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User:GendoIGuess 2 153 357 2021-09-12T12:29:04Z GendoIGuess 46 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 The Power of Two 0 154 358 2021-09-12T12:47:03Z GendoIGuess 46 Created page with "The Power of Two is the fifth season of Battle For Dream Island" wikitext text/x-wiki The Power of Two is the fifth season of Battle For Dream Island e13f5601b0654c0ef57fffa432043dda93a6f9c2 User talk:LightBlub27 3 155 359 2021-09-12T13:04:46Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=LightBlub27}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 13:04, 12 September 2021 (UTC) 8b4775c9d6ce82d1feb1a811e9d82abf59504293 User talk:HourVI 3 156 360 2021-09-12T13:46:05Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=HourVI|name=HourVI}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 13:46, 12 September 2021 (UTC) e8b1a63d9a0f24ec063502c362067b91fc1a38d2 User talk:Butterydxaa 3 157 361 2021-09-12T13:58:33Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Butterydxaa}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 13:58, 12 September 2021 (UTC) a64515cc2408817fda3e7307c78ab6150ecd8f8c User talk:Edgy mcedgelord 3 158 362 2021-09-12T14:07:38Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Edgy mcedgelord}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 14:07, 12 September 2021 (UTC) 9586a683b8474ec472f6e15ad66729026f7aff64 User:Masterofpuppets692 2 159 363 2021-09-12T14:36:06Z Masterofpuppets692 57 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 UserWiki:Masterofpuppets692 200 160 364 2021-09-12T15:01:41Z Masterofpuppets692 57 Created page with "i dont know <pre> ,-. ,'( | \,-./ \ _,-'\ ._\_.-'''`-. ,' ) ,' \ ,' (,' | /..." wikitext text/x-wiki i dont know <pre> ,-. ,'( | \,-./ \ _,-'\ ._\_.-'''`-. ,' ) ,' \ ,' (,' | / _,.---. ,' | ,',-- -./ | | | , ,/ | | | ,. '. \ ` \ `' | \ \ \ _,'`-.| | \ /,' ,' | `._ '--.,--;' _,' `+-.-' ,o.__;' _,,....._/,' `.\_/|o| /`. / ___ / | \ `-' \,-\ |`. _.:./ |_....> \,| ` `._ `. / | ___,|'_._ \ `--..i._/ /`'--;\-''',',' | / ......_`' ,-;-\--: / / | ________,,.\,' /,' // _,' | _\ // _.''' ' | -hrr-.,----'_,\.:--'/| ,' ``-......,---' \__,' `' </pre> <pre> _.._ _..---. .-" ;-" \ / / | | | _= | ; _.-'\__.-') | `-' | | ; | /; / _, .-.;.-=-./-""-.-` _` / | \ \-` `, | | | | |____|______| | \0 / \0 / / .--.-""-.`--' .' (# ) , \ ('--' /\` \ \ ,, .' \ `-._ _.'\ \ jgs `""` \ \ </pre> <pre> .mMMMMm. .mMMMMMMMMMMMm .... .mMMMMMMMMMMMMMM. .mMMMMMm. .mMMMMMMMMMMMMMMMM' .mMMMMMMMM) .MMMMMMMMMMMMMMM/' (MMMMMMMMMM/ .MMMMMMMMMMMM"' mMMMMMMMMMM/ (MMMMMMMMM"' /MMMMMMMMMM/ |MMMMMMMM/ MMMMMMMMMM/ MMMMMMMM/ (MMMMMMMMMM( /MMMMMMM/ MMMMMMMMMM| |MMMMMM" \MMMMMMMMM\ .mmmm.. |MMMMM` \MMMMMMMMMM. .mMMMMMMMMm..mMMMm.MM/ \MMMMMMMMM\. mMMMMMMMMMMMMMMMMMMMMMm` \MMMMMMMMM. .mMMMMMMMM"""MMMMMMMMMMMMMm `?MMMMMMMMm mMMMMMMMM"' "MMMMMMMMMMMMm. `"MMMMMMMm/MMMMMMM/' \MMMMMMMMMMMM. `\MMMMM/MMMMMM"' `MMMMMMM"""Mm. `\MM/MMMMMM/ `MMMM"' '\M. ./MMMMMM/' `"' '\ /MMMMMMM' \ /MMMMMMM/ `, /MMMMMMMM | .MMMMMMMMM ) (MMMMMMMM| | |MMMMMMMM|. ) |MMMMMMMMM| oOo oOo. .' |MMMMMMMMM| (OOOo OOOO. / (MMMMMMMMM\ OOOO. OOOO). ' \MMMMMMMMMM `OOOO `OOO' / x.. `\MMMMMMMMMm `OO" _"'__ ./Mm._______ \MMMmm.MM"' '\ ..**"""""***. <"""",MMMM/' . \MMMMMM' .**" ,'**** ')mMMMM' `\MMM( (**.__.******"' )MMM/ xmm>MMM\ `********""' )M/' `\MMMMMm, """ ,'M' `-"Mm. ./"' `\. ,/' `\. _,/' `. /` _,-/"' M\ ( \ /' MMm. `' / MMMMm. ,' MMMMMMMmmmMM MMMMMMMmmmMM MMMMMMMMMMMM </pre> <pre> / / /| / ------------ / \-- ----- / ---\ \/ / |/ \ / / \ \ / .___ \ \ | ._| \ \ | \ _ \/\ /\ \ \ | | \ \ \ \/ | \ \ \__/ \ \ /\ \ \ \ \ \/ \ \ /\ \ \/ / /\ \ / \ \ \/ \ \ /\ .___ \ \/ / |._ \ \ / / ||/ \ \/ /| | /\ \ / / \ \ \/ / \ \ \ \/\ \ \/ /\ \ \ / / \ \ / / \/ \ \ /\ | | \ / / /\ |\ |\ \ / / / | \ | \ \ \ / | \ ||\\ \ / | \ || \\ |-||\\|| \/ | || \ | \ || \| || || || || / || / | / |/ | </pre> did you know that? 286600621e8bc580547c7560d69c7ff9f030677a User talk:BotchedAgain 3 161 365 2021-09-12T16:30:01Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=BotchedAgain}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 16:30, 12 September 2021 (UTC) c16bd60236df6ec118371943cedb2e02af531668 User talk:Trendy 3 162 366 2021-09-12T16:58:59Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Trendy}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 16:58, 12 September 2021 (UTC) 7933f74cdd46c12c6a12d5fe7daf0820f4282fdd User talk:Fco 3 163 367 2021-09-12T17:24:56Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Fco}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 17:24, 12 September 2021 (UTC) 212993d93f93292803de73e8e8bfb5300f3d6497 User:Masterofpuppets692 2 159 368 363 2021-09-12T17:28:52Z Masterofpuppets692 57 wikitext text/x-wiki i dont know <pre> ,-. ,'( | \,-./ \ _,-'\ ._\_.-'''`-. ,' ) ,' \ ,' (,' | / _,.---. ,' | ,',-- -./ | | | , ,/ | | | ,. '. \ ` \ `' | \ \ \ _,'`-.| | \ /,' ,' | `._ '--.,--;' _,' `+-.-' ,o.__;' _,,....._/,' `.\_/|o| /`. / ___ / | \ `-' \,-\ |`. _.:./ |_....> \,| ` `._ `. / | ___,|'_._ \ `--..i._/ /`'--;\-''',',' | / ......_`' ,-;-\--: / / | ________,,.\,' /,' // _,' | _\ // _.''' ' | -hrr-.,----'_,\.:--'/| ,' ``-......,---' \__,' `' </pre> <pre> _.._ _..---. .-" ;-" \ / / | | | _= | ; _.-'\__.-') | `-' | | ; | /; / _, .-.;.-=-./-""-.-` _` / | \ \-` `, | | | | |____|______| | \0 / \0 / / .--.-""-.`--' .' (# ) , \ ('--' /\` \ \ ,, .' \ `-._ _.'\ \ jgs `""` \ \ </pre> <pre> .mMMMMm. .mMMMMMMMMMMMm .... .mMMMMMMMMMMMMMM. .mMMMMMm. .mMMMMMMMMMMMMMMMM' .mMMMMMMMM) .MMMMMMMMMMMMMMM/' (MMMMMMMMMM/ .MMMMMMMMMMMM"' mMMMMMMMMMM/ (MMMMMMMMM"' /MMMMMMMMMM/ |MMMMMMMM/ MMMMMMMMMM/ MMMMMMMM/ (MMMMMMMMMM( /MMMMMMM/ MMMMMMMMMM| |MMMMMM" \MMMMMMMMM\ .mmmm.. |MMMMM` \MMMMMMMMMM. .mMMMMMMMMm..mMMMm.MM/ \MMMMMMMMM\. mMMMMMMMMMMMMMMMMMMMMMm` \MMMMMMMMM. .mMMMMMMMM"""MMMMMMMMMMMMMm `?MMMMMMMMm mMMMMMMMM"' "MMMMMMMMMMMMm. `"MMMMMMMm/MMMMMMM/' \MMMMMMMMMMMM. `\MMMMM/MMMMMM"' `MMMMMMM"""Mm. `\MM/MMMMMM/ `MMMM"' '\M. ./MMMMMM/' `"' '\ /MMMMMMM' \ /MMMMMMM/ `, /MMMMMMMM | .MMMMMMMMM ) (MMMMMMMM| | |MMMMMMMM|. ) |MMMMMMMMM| oOo oOo. .' |MMMMMMMMM| (OOOo OOOO. / (MMMMMMMMM\ OOOO. OOOO). ' \MMMMMMMMMM `OOOO `OOO' / x.. `\MMMMMMMMMm `OO" _"'__ ./Mm._______ \MMMmm.MM"' '\ ..**"""""***. <"""",MMMM/' . \MMMMMM' .**" ,'**** ')mMMMM' `\MMM( (**.__.******"' )MMM/ xmm>MMM\ `********""' )M/' `\MMMMMm, """ ,'M' `-"Mm. ./"' `\. ,/' `\. _,/' `. /` _,-/"' M\ ( \ /' MMm. `' / MMMMm. ,' MMMMMMMmmmMM MMMMMMMmmmMM MMMMMMMMMMMM </pre> <pre> / / /| / ------------ / \-- ----- / ---\ \/ / |/ \ / / \ \ / .___ \ \ | ._| \ \ | \ _ \/\ /\ \ \ | | \ \ \ \/ | \ \ \__/ \ \ /\ \ \ \ \ \/ \ \ /\ \ \/ / /\ \ / \ \ \/ \ \ /\ .___ \ \/ / |._ \ \ / / ||/ \ \/ /| | /\ \ / / \ \ \/ / \ \ \ \/\ \ \/ /\ \ \ / / \ \ / / \/ \ \ /\ | | \ / / /\ |\ |\ \ / / / | \ | \ \ \ / | \ ||\\ \ / | \ || \\ |-||\\|| \/ | || \ | \ || \| || || || || / || / | / |/ | </pre> did you know that? 286600621e8bc580547c7560d69c7ff9f030677a User talk:MaxelMix 3 164 369 2021-09-12T18:17:57Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=MaxelMix}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 18:17, 12 September 2021 (UTC) 1b068d754bce9189f4f48a0ba8c24d79c3ea3b30 User:GendoIGuess 2 153 370 357 2021-09-12T18:28:40Z GendoIGuess 46 YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass wikitext text/x-wiki YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass 55e0b2d36b4c7f5050dfd51a665a15f27a7d85e9 390 370 2021-10-21T19:06:13Z GendoIGuess 46 Replaced content with "straight" wikitext text/x-wiki straight 6ec09feb3f1285b37f8d573f5fc8e3dc60927cbf UserWiki:GendoIGuess 200 165 371 2021-09-12T18:29:23Z GendoIGuess 46 import user wiki wikitext text/x-wiki YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass YOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO i eat ass 55e0b2d36b4c7f5050dfd51a665a15f27a7d85e9 User talk:Foolcrum 3 166 372 2021-09-12T20:01:39Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Foolcrum}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 20:01, 12 September 2021 (UTC) 7657e8406a9ecdc874a41faaaa68fc5d330a9932 User talk:ComicalSituation 3 167 373 2021-09-13T00:23:30Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=ComicalSituation}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 00:23, 13 September 2021 (UTC) d38a098ddeefd586c3f3c21742da860b7f2faac3 UserWiki:Mokm 200 168 374 2021-09-13T03:21:18Z Mokm 28 import user wiki wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Trota123 3 169 375 2021-09-13T14:21:47Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=Gabriel|name=Trota123}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 14:21, 13 September 2021 (UTC) 0ce29a9c2bf30c15b0f2600f16537ca76d05a5b9 User:Trota123 2 170 376 2021-09-13T14:27:06Z Trota123 65 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User:BwarkBwark 2 171 377 2021-09-14T06:39:55Z BwarkBwark 66 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Ender1214 3 172 378 2021-09-16T17:50:22Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Ender1214}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 17:50, 16 September 2021 (UTC) ddaaaa75bb60edaa274e1befcf1a8deffe0283f1 User talk:Chedder 3 173 379 2021-09-23T16:32:16Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Chedder}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 16:32, 23 September 2021 (UTC) 71a01401fc39429be53a2c1a9a4d92bc55df296a User talk:ChedderAgain 3 174 380 2021-09-23T16:37:36Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=ChedderAgain}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 16:37, 23 September 2021 (UTC) 6b8f6c780dcd82607fdeee94cebbea7ac45ce897 User talk:YoyleWoody 3 175 381 2021-09-23T17:14:04Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=YoyleWoody}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 17:14, 23 September 2021 (UTC) b1a11ee0d7e8c8fc6a576b1cb867adbaa5e46ee8 User talk:Wyntrii 3 176 382 2021-09-24T23:37:07Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Wyntrii}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 23:37, 24 September 2021 (UTC) 55319b54cb736db8e440975bed054918edda4c26 User talk:BetterNamer 3 177 383 2021-09-28T02:55:34Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=BetterNamer}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 02:55, 28 September 2021 (UTC) 625484bdc2aed85a203c2de8acc33ad86f373917 User talk:GamerGuy23465 3 178 384 2021-10-02T14:32:03Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=GamerGuy23465}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 14:32, 2 October 2021 (UTC) 0fbaf12db67bfb541ca2bf0923a3d16312dbdf53 User:GamerGuy23465 2 179 385 2021-10-02T14:34:50Z GamerGuy23465 76 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Babrbabr 3 180 386 2021-10-02T14:36:38Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Babrbabr}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 14:36, 2 October 2021 (UTC) 14b604cc44c2c38539947f7035cb6f4be602b616 User talk:That pepesa 3 181 387 2021-10-02T17:55:27Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=That pepesa}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 17:55, 2 October 2021 (UTC) f994c80021904cf8d85f9d03d3e5e62493b2d962 User talk:Squonk 3 182 388 2021-10-13T19:31:33Z Squonk 36 Created page with "shhhhhh" wikitext text/x-wiki shhhhhh b57ee38df898f6c7fc388db829a5d5f7347853ad File:Brave twitter instagram veggystealing carrot beet.png 6 183 389 2021-10-21T19:02:48Z GendoIGuess 46 wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Hap 3 184 391 2021-10-25T17:52:59Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Hap}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 17:52, 25 October 2021 (UTC) 3b6a58a46dc8e39caf28fa4d65f4b6de4c35d53d User talk:MarxIsAJester 3 185 392 2021-10-25T19:00:23Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=MarxIsAJester}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 19:00, 25 October 2021 (UTC) 37cbd8f557952fe1bf1948e3582abcdb2877ecf8 User talk:Sleepy28 3 186 393 2021-10-25T19:01:45Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Sleepy28}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 19:01, 25 October 2021 (UTC) 77686da838873f1ffeaaf191aa62c5339a94515a User talk:0inkling0 3 187 394 2021-10-26T15:16:35Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=0inkling0}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 15:16, 26 October 2021 (UTC) f5355e293c8b4fce71e807907f42019095b86f51 User:0inkling0 2 188 395 2021-10-26T15:21:57Z 0inkling0 87 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Psi 3 189 396 2021-11-02T01:43:28Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=Psilocyvinorum|name=Psi}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 01:43, 2 November 2021 (UTC) 4b703abdff6dc5370c1433364251d9f12e03aa06 User:FlxffyThxrns 2 190 397 2021-11-02T15:15:26Z FlxffyThxrns 82 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 UserWiki:Crumpetz 200 191 398 2021-11-02T22:03:18Z Crumpetz 90 import user wiki wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Ultrx55 3 192 399 2021-11-02T22:27:57Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Ultrx55}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 22:27, 2 November 2021 (UTC) b5384db8382d1efcfed0b5a9a094200f7909b332 User talk:MangoLichi 3 193 400 2021-11-02T22:36:01Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=MangoLichi}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 22:36, 2 November 2021 (UTC) 7a2f6a72e433d5cd7f6c8dc0fd5a762b0df319a7 User talk:JamessWasTaken 3 194 401 2021-11-02T22:38:11Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=JamessWasTaken|name=JamessWasTaken}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 22:38, 2 November 2021 (UTC) a40c657d62790833d8677d9bbc33360ec01ff49b User:JamessWasTaken 2 195 402 2021-11-02T22:39:26Z JamessWasTaken 93 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Downwards-Upz-Mist 3 196 403 2021-11-03T03:07:33Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Downwards-Upz-Mist}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 03:07, 3 November 2021 (UTC) ef3d8e7b151086419d0a91127954fe4361ad6024 UserWiki:Sayu 200 197 404 2021-11-03T17:26:24Z Sayu 38 import user wiki wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 Island Dream for Battle 0 198 405 2021-11-05T00:14:50Z Ultrx55 91 Created page with "Island Dream for Battle is the 3rd season of the BFDI web series. alan please add more details" wikitext text/x-wiki Island Dream for Battle is the 3rd season of the BFDI web series. alan please add more details 7d5bd6d946a718d7f034db84d02e6ed26a2157c2 406 405 2021-11-05T00:16:04Z Ultrx55 91 wikitext text/x-wiki Island Dream for Battle, often abbreviated as IDFB, is the 3rd season of the BFDI web series. 6883a865d673a4c83335f632788137a3576eab64 User:Sayu 2 199 407 2021-11-05T15:51:49Z Sayu 38 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 Talk:The Power of Two 1 200 408 2021-11-07T02:11:09Z GendoIGuess 46 Created page with "escaped the fandom --~~~~" wikitext text/x-wiki escaped the fandom --[[User:GendoIGuess|GendoIGuess]] ([[User talk:GendoIGuess|talk]]) 02:11, 7 November 2021 (UTC) ffbf43e4954dcfceeb926d3579522df74869ff04 User:BlueJ73 2 201 409 2021-11-13T00:01:51Z BlueJ73 81 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 David 0 121 410 276 2021-12-23T17:52:29Z HHegg 34 wikitext text/x-wiki David is a male contestant on [[Battle for Dream Island]] and [[Battle for BFDI]]. {{Characterbox|Species=Human stick figure|Picture=notdavid.png|Quote=Aw, seriously!|Gender=Male|Pronouns=they/them|Debut=[[Vomitaco]]|Eliminated episode=BFDI: [[Gardening Hero]] BFB: [[Enter The Exit]] |Voice Actor=[[Michael Huang]]}} ==Appearance== David is a stick figure that is poorly drawn. ==Trivia== David is one of the few contestants that aren't an object 5f246a95bd479fa821e8071b27c46422730d6843 UserWiki:Angrybirbjs 200 202 411 2021-12-27T19:58:40Z Angrybirbjs 100 import user wiki wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:MarshRiskyEggs 3 203 412 2022-02-17T01:04:14Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=MarshRiskyEggs}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 01:04, 17 February 2022 (UTC) c01cbfcf55d877c5c01299d7b65329e165c4e24c User:Arms99 2 204 413 2022-02-23T19:42:34Z Arms99 32 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709 User talk:Neptunix 3 205 414 2022-03-06T14:19:54Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Neptunix}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 14:19, 6 March 2022 (UTC) 0fa569faa9dfc4f9175c1ecba0e5b08aab47d733 The Power of Two 0 154 415 358 2022-04-23T02:31:31Z CowardousShiner 40 please no close this wiki wikitext text/x-wiki The Power of Two is the fifth season of Battle For Dream Island, and is currently ongoing. d85d87cc87ff15e3e74b656d7cd719ee150b6877 UserWiki talk:Sayu 201 206 416 2022-05-12T13:29:05Z Sayu 38 /* huh */ new section wikitext text/x-wiki == huh == huh [[User:Sayu|Sayu]] ([[User talk:Sayu|talk]]) 13:29, 12 May 2022 (UTC) 7b5eaafb8c2acb030ec1e9bbb96e46e8ccb334a9 User talk:Ghjkhgvcbghjujhb 3 207 417 2022-05-22T03:20:42Z New user message 4 Adding [[Template:Welcome|welcome message]] to new user's talk page wikitext text/x-wiki {{Template:Welcome|realName=|name=Ghjkhgvcbghjujhb}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 03:20, 22 May 2022 (UTC) 5b1eaf8970365d1be7e7b6ba3db3c28b34c616c4 418 417 2022-06-22T01:45:44Z Sayu 38 yes wikitext text/x-wiki {{Template:Welcome|realName=|name=Ghjkhgvcbghjujhb}} -- [[User:New user message|New user message]] ([[User talk:New user message|talk]]) 03:20, 22 May 2022 (UTC) huhhihuuhuhhuuhuhuhuhuuhuuhuhuhuuh ac94a9ea6d677bb8693ff1533d3f713ceed64df0 Pin 0 118 419 273 2022-08-10T16:58:43Z Angrybirbjs 100 wikitext text/x-wiki Pin is a female contestant on [[Battle for Dream Island]], [[Battle for Dream Island Again]], [[Island Dream for Battle]], [[Battle for BFDI]], and [[The Power of Two]]. {{Characterbox|Species=Pushpin|Picture=Pinny.png|Quote=It's hard to patch things up after you've hurt people, even once you learn that you should try!|Gender=Female|Pronouns=she/her|Debut=[[Take the Plunge]]|Eliminated episode=BFDI: [[Power of Three]] |Voice Actor=[[Cary Huang]]}} == Appearance == Pin is a red plastic pushpin. Appearing in every season of BFDI. == Trivia == [[Category:Characters]] cd1e4f78960417196d65f6abf57e09a724283a62 User:Kogglyuffs 2 208 420 2022-10-03T00:59:19Z Kogglyuffs 29 create user page wikitext text/x-wiki da39a3ee5e6b4b0d3255bfef95601890afd80709